remapCoords

beta
filter
remapCoords
RayTK
v0.36

Modifies space using a vector field.

When the shader uses the operator, it will first pass the coordinates to the “Coord Field”. It then uses the resulting remapped coordinates when running the first input operator.

Parameters

  • Enable:
  • Remap Mode: How the remapped coordinates are applied to the original coordinates.
    • Replace: Totally replace the original coordinates with the new ones that came from the "Coord Field".
    • Add: Add the new coordinates to the original ones.
    • Multiply: Multiply the new coordinates with the original ones.
  • Mix: Cross-fades between the original coordinates and the remapped ones.

Inputs

  • definition_in: (required)
    • Coordinate Types: float vec2 vec3 vec4
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float vec4 Sdf Ray Light Particle
  • Coordinate Field: (required)
    • Coordinate Types: float vec2 vec3 vec4
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float vec4