Class: NormalMaterial

NormalMaterial(webglContext)

`NormalMaterial` visualizes vertex normals as RGB colors. Useful as a diagnostic material to validate normal buffers and attribute bindings.

Constructor

new NormalMaterial(webglContext)

Parameters:
Name Type Description
webglContext WebGL2RenderingContext WebGL2 rendering context used to compile shaders.
Source:

Classes

NormalMaterial

Methods

apply(matrix4)

Applies per-object uniforms.
Parameters:
Name Type Description
matrix4 Float32Array Transformation matrix passed as `u_matrix`.
Source: