Represents the rendering context`.

Implements

  • WebGLContextProvider

Constructors

Properties

activeView: View

The View we are currently rendering.

backfaces: boolean

Whether backfaces are currently enabled during the current frame.

bindTexture: number

Statistic that counts how many times gl.bindTexture() has been called so far within the current frame.

debugging: boolean

Whether debugging is enabled.

drawInspector: DrawInspector

The DrawInspector for logging draw calls.

frontface: boolean

The vertex winding order for what we currently consider to be a backface during current frame: true == "cw", false == "ccw".

gl: WebGL2RenderingContext

The WebGL rendering context.

lastProgramId: number

ID of the last WebGLProgram that was bound during the current frame. Used to avoid redundant program binds.

lineWidth: number

The current line width.

memoryConfigs: MemoryConfigs

The memory configuration for the WebGLRenderer.

pbrEnabled: boolean

Whether to render a quality representation for triangle surfaces.

When false, we'll render them with a fast vertex-shaded Gouraud-shaded representation, which is great for zillions of objects.

When true, we'll render them at a better visual quality, using smooth, per-fragment shading and a more realistic lighting model.

pickClipPos: FloatArrayParam

TODO

pickInvisible: boolean

Whether the WebGLRenderer is currently picking invisible objects.

pickProjMatrix: FloatArrayParam

The 4x4 orthographic projection transform matrix the WebGLRenderer is currently using when rendering a ray-pick.

pickViewMatrix: FloatArrayParam

The 4x4 viewing transform matrix the WebGLRenderer is currently using when rendering a ray-pick.

This sets the viewpoint to look along the ray, when picking with a ray.

pickZFar: number

Distance to the far clipping plane when rendering depth fragments for GPU-accelerated 3D picking.

pickZNear: number

Distance to the near clipping plane when rendering depth fragments for GPU-accelerated 3D picking.

rayPicking: boolean

Whether we are currently picking with a ray.

saoOcclusionTexture: WebGLAbstractTexture

The occlusion rendering texture.

textureUnit: number

The next available texture unit to bind a texture to.

viewer: Viewer

The Viewer.

webglCanvasElement: HTMLCanvasElement

The HTML canvas element used for WebGL rendering.

Accessors

Methods