voxolith

MaterialHint

Optional shading, mirroring the renderer's per-slot material block.

Defined in: engine/src/entity.ts:29

Properties

PropertyTypeDescriptionDefined in
alpha?numberOpacity 0..1 (kinds "glass" and "water"); 0 is clear.engine/src/entity.ts:45
att?numberAttenuation through glass; for water, how fast the bed fades with depth (per voxel).engine/src/entity.ts:47
emit?numberEmission strength (kind "emit").engine/src/entity.ts:41
ior?numberIndex 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?numberMetalness 0..1 (kind "metal").engine/src/entity.ts:39
rough?number0 = mirror-smooth, 1 = fully rough.engine/src/entity.ts:37
spec?numberSpecular strength.engine/src/entity.ts:49

On this page