Skip to content

Documentation / @ripl/3d / MATERIAL_SIDE_CODE

Variable: MATERIAL_SIDE_CODE ​

const MATERIAL_SIDE_CODE: object

Defined in: 3d/src/core/uniforms.ts:255

Numeric discriminators for each material side, shared by the packer and the shader.

Type Declaration ​

back ​

readonly back: 2 = 2

Draw only faces wound away from the camera.

double ​

readonly double: 0 = 0

Draw both facings.

front ​

readonly front: 1 = 1

Draw only faces wound counter-clockwise towards the camera.