Draw technique for rendering colored triangles with Lambert shading.

Hierarchy (View Summary)

Constructors

Properties

edges: boolean

When true, the technique binds silhouette-related uniforms using "edge" material settings (edgeColor/edgeAlpha) instead of fill settings (fillColor/fillAlpha).

Used by silhouette-like techniques that can render both filled silhouettes and edge silhouettes.

errors: string[]

Compilation errors encountered during program initialization. Available after init() is called.

fragmentShaderSrc: string

Fragment shader source code. Available after init() is called.

vertexShaderSrc: string

Vertex shader source code. Available after init() is called.

Methods