Skip to content

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 ​

PropertyTypeDescriptionDefined in
emissiveColorUnitRGBLight the surface emits, in unit RGB.3d/src/core/uniforms.ts:321
mapOffsetVector2The texture's offset across the surface.3d/src/core/uniforms.ts:327
mapRepeatVector2The texture's repeat across the surface.3d/src/core/uniforms.ts:325
modelMatrixArrayLike<number>The mesh's model matrix.3d/src/core/uniforms.ts:313
normalMatrixArrayLike<number>The mesh's normal matrix.3d/src/core/uniforms.ts:315
shininessnumberThe Blinn-Phong specular exponent.3d/src/core/uniforms.ts:319
sidenumberThe material side, one of MATERIAL_SIDE_CODE.3d/src/core/uniforms.ts:323
specularColorUnitRGBThe specular highlight colour, in unit RGB.3d/src/core/uniforms.ts:317