Class RenderContextInternal

Constructors

Properties

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.

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.

lineWidth: number

The current line width.

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
pickInvisible: boolean

Whether or not the renderers is currently picking invisible objects.

pickProjMatrix: any

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

pickViewMatrix: any

The 4x4 viewing transform matrix the renderers 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.

renderPass: number

Indicates which pass the renderers is currently rendering.

saoOcclusionTexture: WebGLAbstractTexture

The occlusion rendering texture.

shadowProjMatrix: any

The 4x4 viewing projection matrix the renderers is currently using when rendering shadows.

shadowViewMatrix: any

The 4x4 viewing transform matrix the renderers is currently using when rendering castsShadows.

This sets the viewpoint to look from the point of view of each !DirLight | DirLight or !PointLight|PointLight that casts a shadow.

textureUnit: number

The next available texture unit to bind a texture to.

view: View

The View we are rendering.

viewer: Viewer

The Viewer.

webglRenderer: WebGLRenderer

Accessors

Methods