PixelImageTextureOptions
A texture drawn from image files, such as an artist’s PNGs: imports of
the files, as import grassImage from "./grass.png" gives them.
Extends
Section titled “Extends”Properties
Section titled “Properties”| Property | Type | Default value | Description |
|---|---|---|---|
emissiveMap? |
string |
undefined |
The colour the surface glows with, in sRGB, at the colour’s size. |
height? |
undefined |
undefined |
- |
map |
string |
undefined |
The colour, in sRGB. Its size in pixels is the texture’s. |
name |
string |
undefined |
What errors name it by, and what keys its random stream, so two textures on one seed paint apart: "grass". |
normalMap? |
string |
undefined |
A tangent-space normal map in three’s convention, green up, at the colour’s size; left out, the surface is flat. |
normalScale? |
number |
1 |
three’s normalScale, on both axes: how strongly the height bumps under the light. |
paint? |
undefined |
undefined |
A painted texture’s alone: an image texture’s size is its colour’s. |
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? |
undefined |
undefined |
- |