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 ​
| Property | Type | Description | Defined in |
|---|---|---|---|
color | ColorRGBA | undefined | The 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 |
colorStyle | string | The colour string the surface's own colour was resolved from. | 3d/src/core/material.ts:68 |
flatShading | boolean | Whether faces are shaded by their own normal rather than their per-vertex normals. | 3d/src/core/material.ts:76 |
map | Texture | undefined | The image mapped across the surface, or undefined when there is none. | 3d/src/core/material.ts:80 |
side | MaterialSide | Which faces are drawn. | 3d/src/core/material.ts:72 |
surface | ResolvedSurface | The specular and emissive terms the shading maths consumes. | 3d/src/core/material.ts:70 |
vertexColors | boolean | Whether per-face vertex colours replace the surface colour. | 3d/src/core/material.ts:78 |
wireframe | boolean | Whether the surface is drawn as edges only. | 3d/src/core/material.ts:74 |