MaterialHint
Optional shading, mirroring the renderer's per-slot material block.
Defined in: engine/src/entity.ts:29
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
alpha? | number | Opacity 0..1 (kinds "glass" and "water"); 0 is clear. | engine/src/entity.ts:45 |
att? | number | Attenuation through glass; for water, how fast the bed fades with depth (per voxel). | engine/src/entity.ts:47 |
emit? | number | Emission strength (kind "emit"). | engine/src/entity.ts:41 |
ior? | number | Index of refraction offset (kind "glass"). | engine/src/entity.ts:43 |
kind | "diffuse" | "metal" | "glass" | "emit" | "water" | "water" is a transparent, animated surface: the renderer ripples its top faces over time, reflects the sky, and shows the bed through it, fading with depth by att. | engine/src/entity.ts:35 |
metal? | number | Metalness 0..1 (kind "metal"). | engine/src/entity.ts:39 |
rough? | number | 0 = mirror-smooth, 1 = fully rough. | engine/src/entity.ts:37 |
spec? | number | Specular strength. | engine/src/entity.ts:49 |