PaintedPixelTextureOptions
A texture painted on the CPU.
Extends
Section titled “Extends”Properties
Section titled “Properties”| Property | Type | Default value | Description |
|---|---|---|---|
height |
number |
undefined |
Its height in texels, which a block’s 0.5-metre step divides into 8 at 16 a metre. |
map? |
undefined |
undefined |
An image texture’s alone. |
name |
string |
undefined |
What errors name it by, and what keys its random stream, so two textures on one seed paint apart: "grass". |
normalScale? |
number |
1 |
three’s normalScale, on both axes: how strongly the height bumps under the light. |
paint |
(context) => void |
undefined |
Paints the texture’s layers, once, when a view first uses it. It returns nothing: a painter that awaits would upload unfinished pixels. |
pixelsPerMetre? |
number |
16 |
How many texels make a metre, the 2D frame’s. |
variation? |
"none" | "turn-and-mirror" | "mirror" | TextureVariation |
TextureVariation.TurnAndMirror |
How a pixel material varies it across a surface; a material may override it. |
width |
number |
undefined |
Its size in texels: a 64-texel ground repeats every 4 metres at 16 a metre. |