Documentation / @ripl/3d / ModelUniformInput
Interface: ModelUniformInput ​
Defined in: 3d/src/core/uniforms.ts:311
Everything the per-model uniform needs, independent of any particular backend.
Properties ​
| Property | Type | Description | Defined in |
|---|---|---|---|
emissive | ColorUnitRGB | Light the surface emits, in unit RGB. | 3d/src/core/uniforms.ts:321 |
mapOffset | Vector2 | The texture's offset across the surface. | 3d/src/core/uniforms.ts:327 |
mapRepeat | Vector2 | The texture's repeat across the surface. | 3d/src/core/uniforms.ts:325 |
modelMatrix | ArrayLike<number> | The mesh's model matrix. | 3d/src/core/uniforms.ts:313 |
normalMatrix | ArrayLike<number> | The mesh's normal matrix. | 3d/src/core/uniforms.ts:315 |
shininess | number | The Blinn-Phong specular exponent. | 3d/src/core/uniforms.ts:319 |
side | number | The material side, one of MATERIAL_SIDE_CODE. | 3d/src/core/uniforms.ts:323 |
specular | ColorUnitRGB | The specular highlight colour, in unit RGB. | 3d/src/core/uniforms.ts:317 |