Skip to content

Documentation / @ripl/3d / ResolvedMaterial

Interface: ResolvedMaterial ​

Defined in: 3d/src/core/material.ts:61

A material with every property resolved, as the render path consumes it.

Properties ​

PropertyTypeDescriptionDefined in
colorColorRGBA | undefinedThe surface's own colour in 0–255 channels, with opacity applied to the alpha, or undefined when colorStyle is not a colour this library can parse.3d/src/core/material.ts:66
colorStylestringThe colour string the surface's own colour was resolved from.3d/src/core/material.ts:68
flatShadingbooleanWhether faces are shaded by their own normal rather than their per-vertex normals.3d/src/core/material.ts:76
mapTexture | undefinedThe image mapped across the surface, or undefined when there is none.3d/src/core/material.ts:80
sideMaterialSideWhich faces are drawn.3d/src/core/material.ts:72
surfaceResolvedSurfaceThe specular and emissive terms the shading maths consumes.3d/src/core/material.ts:70
vertexColorsbooleanWhether per-face vertex colours replace the surface colour.3d/src/core/material.ts:78
wireframebooleanWhether the surface is drawn as edges only.3d/src/core/material.ts:74