triPlanarTextureField
field
triPlanarTextureField
RayTK
v0.42
Texture field that uses surface normals (or other blending techniques) to apply a texture facing each axis.
On a cube centered at the origin, this has the effect of placing the texture on each side of the cube. For a sphere, when using normal blending, the texture for each axis will smoothly blend as the surface normal shifts from one axis to another.
Textures are centered at 0,0 with coordinates ranging from -0.5 to 0.5.
Parameters
Name | Description | Regular Handling | Read-Only Handling |
---|---|---|---|
Enable | |||
Return Type | Type of value to produce. | ||
| |||
Translate | Runtime | Baked | |
Scale | Runtime | Baked | |
Use Separate Textures | Whether to use a single texture for all axes, or a separate texture for each axis. | Baked | Baked |
Texture | |||
Texture X | |||
Texture Y | |||
Texture Z | |||
Extend Mode | How to handle coordinates outside the texture’s bounds. | Semi-Baked | Semi-Baked |
| |||
Blend Mode | How to combine the colors from each axis. | Semi-Baked | Semi-Baked |
|
Inputs
-
UV Map Field
: (optional)- Coordinate Types:
float
vec2
vec3
vec4
- Context Types:
MaterialContext
- Return Types:
vec4
- Coordinate Types: