PixelMaterialOptions
What usePixelMaterial builds its material with.
Properties
Section titled “Properties”| Property | Type | Default value | Description |
|---|---|---|---|
alphaTest? |
number |
0 |
Drops a texel whose alpha is below it, for a cut-out such as a grass brim: three’s alphaTest. |
emissive? |
ColorRepresentation |
white |
The colour the texture’s emissive map glows with: three’s emissive. A painted mask is grey, so this is its only colour. It glows nothing where the texture has no emissive map. |
variation? |
"none" | "turn-and-mirror" | "mirror" | TextureVariation |
the texture's own |
How the material varies the texture across a surface. |
vertexColors? |
boolean |
false |
Multiplies in the geometry’s vertex colours, such as a block map’s baked occlusion: three’s vertexColors. |