API Reference · Materials and textures
UvSource
public enum UvSourceWhich side of a triangle is rasterised.
Values
| Value | Description |
|---|---|
Mesh | The mesh's own texture coordinates. The default, and what a normal map's tangents assume. |
PlanarX | Projected down the x axis: one sample, no blend. For a wall facing along x. |
PlanarY | Projected down the y axis. For a floor, a ceiling, or ground. |
PlanarZ | Projected down the z axis. For a wall facing along z. |
Triplanar | Projected down all three axes and blended by the surface normal. Three samples per map rather than one, which is the honest price and the reason the planar sources exist beside it. Worth it on anything that faces more than one way: a pipe, a rock, a rounded box. |