textureField

textureField

field
textureField
RayTK
v0.42

A float or vector field that looks up values from a texture.

Texture is centered at 0,0 with coordinates from -0.5 to 0.5.

Parameters

Name Description Regular Handling Read-Only Handling
Enable
Coord Type

The type of coordinates used for UV mapping.

  • Auto:
  • 1D: Uses the 1D coordinate as U and 0 for V.
  • 2D: Uses the provided 2D coordinates.
  • 3D: Uses the specified `Axis` to choose which axes to use for U and V.
Return Type
  • Float:
  • Vector:
Contexttype

When used for materials, set to MaterialContext, otherwise use Context.

  • :
  • :
  • :
  • :
  • :
Plane

When using 3D coordinates, the axis that faces the plane used for UV. This is not used when a UV field input is attached.

Runtime Baked
  • YZ: U=Y, V=Z
  • ZX: U=Z, V=X
  • XY: U=X, V=Y
Translate

Offsets the UV coordinates.

Runtime Baked
Scale

Scales the UV coordinates.

Runtime Baked
Texture

TOP used for the texture.

Extend Mode

How to handle UV coordinates outside the 0..1 range.

Semi-Baked Semi-Baked
  • Hold:
  • Zero:
  • Repeat:
  • Mirror:
Coord Mode Baked Baked
  • UV [0-1]:
  • Pixel [0-n]:

Inputs

  • UV Map Field: (optional) When provided, this field is used to calculate the UV coordinates (in the x and y parts of the vec4).
    • Coordinate Types: float vec2 vec3 vec4
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: vec4
    • Supports Variables: res aspect

Variables

  • Resolution:
  • Aspect Ratio: