VoxMaterial
A MagicaVoxel MATL material for one palette index, as the file states it (the prefix dropped). Fields a file omits take MagicaVoxel's defaults; packMaterials turns these into the renderer's material buffer.
Defined in: vox.ts:155
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
alpha | number | Glass opacity: _alpha, else _media (default 0). | vox.ts:173 |
att | number | Attenuation through glass (default 0). | vox.ts:167 |
emit | number | Emission strength (default 0). | vox.ts:171 |
flux | number | Emission power (default 0). | vox.ts:169 |
ior | number | Index of refraction minus 1, as MagicaVoxel stores it (default 0.3). | vox.ts:165 |
metal | number | Metalness (default 0; "metal" materials fall back to weight). | vox.ts:175 |
rough | number | Roughness, 0..1 (default 0.1). | vox.ts:161 |
spec | number | Specular, 0..1 (default 0.5). | vox.ts:163 |
type | "diffuse" | "metal" | "glass" | "emit" | Unknown types read as "diffuse". | vox.ts:157 |
weight | number | Strength of the type's effect, 0..1 (default 1). | vox.ts:159 |