Class: WebGLCore

zen3d.WebGLCore(gl)

new WebGLCore(gl)

Core render methods by WebGL.
Parameters:
Name Type Description
gl WebGLRenderingContext
Source:

Members

capabilities :zen3d.WebGLCapabilities

An object containing details about the capabilities of the current RenderingContext.
Type:
Source:

Methods

clear(coloropt, depthopt, stencilopt)

Clear buffers.
Parameters:
Name Type Attributes Default Description
color boolean <optional>
false
depth boolean <optional>
false
stencil boolean <optional>
false
Source:

render(scene, camera, updateRenderListopt)

Render opaque and transparent objects.
Parameters:
Name Type Attributes Default Description
scene zen3d.Scene
camera zen3d.Camera
updateRenderList boolean <optional>
true
Source:

renderPass(list, camera, config=opt)

Render a single renderable list in camera in sequence.
Parameters:
Name Type Attributes Description
list Array List of all renderables.
camera zen3d.Camera Camera provide view matrix and porjection matrix.
config= Object <optional>
The config for this render.
config.getMaterial= function <optional>
Get renderable material.
config.beforeRender= function <optional>
Before render each renderable.
config.afterRender= function <optional>
After render each renderable
config.ifRender= function <optional>
If render the renderable.
config.scene= zen3d.Scene <optional>
Rendering scene, have some rendering context.
Source: