Class EnvironmentMap

Constructors

Properties

Accessors

Methods

Constructors

  • Create a new environment map with 6 textures for each side

    Parameters

    • gl: WebGL2RenderingContext

      GL context

    • textureURLs: string[]

      Array of 6 texture URLs, in order: +x, -x, +y, -y, +z, -z

    Returns EnvironmentMap

Properties

_texture: WebGLTexture
cube: BufferInfo
gl: WebGL2RenderingContext
programInfo: ProgramInfo
renderAsBackground: boolean

Render the environment map as a background, like a skybox

Accessors

Methods

  • Render this envmap as a cube around the given camera & matrices This is used for rendering the envmap as a background and skybox around the scene

    Parameters

    • viewMatrix: mat4

      View matrix

    • projMatrix: mat4

      Projection matrix

    • camera: Camera

      Camera

    Returns void

Generated using TypeDoc