triPlanarCombine
beta
combine
triPlanarCombine
RayTK
v0.42
Combines three 2D fields based on vectors like surface normals.
Parameters
Name | Description | Regular Handling | Read-Only Handling |
---|---|---|---|
Translate | Runtime | Baked | |
Scale | Runtime | Baked | |
Use Normals | Modifies the amount of each field that’s used based on how directly the surface normals are facing that plane. For example, the XY field is used most on parts that are facing forwards or backwards. | Runtime | Semi-Baked |
Blend Mode | How the values from each field are combined. | Runtime | Baked |
| |||
Return Type | |||
|
Inputs
-
UV Field
: (required) Alternative way to provide the coordinates used by the fields rather than just using the position in space. Each input field gets two of the axes of the coordinates provided (e.g. the XY field gets the x and y).- Coordinate Types:
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
vec4
- Coordinate Types:
-
Normals Field
: (required) Field that provides the surface normals used to adjust the influence of each plane. Typically this should be a `normalField` or a `variableReference` that accesses a surface normal within a material.- Coordinate Types:
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
vec4
- Coordinate Types:
-
XY Plane
: (optional)- Coordinate Types:
vec2
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
float
vec4
- Coordinate Types:
-
YZ Plane
: (optional)- Coordinate Types:
vec2
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
float
vec4
- Coordinate Types:
-
ZX Plane
: (optional)- Coordinate Types:
vec2
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
float
vec4
- Coordinate Types: