Skip to main content Link Menu Expand (external link) Document Search Copy Copied
assignUV

assignUV

Keywords:
  • material
  • modularmat
  • surface
  • texture

Assigns UV coordinates to an SDF surface.

Coordinates can either be determined using the selected UV Mode, or using a vector field input.

Parameters

  • Enable:
  • UV Mode:
    • XYZ:
    • XY:
    • YX:
    • YZ:
    • ZY:
    • XZ:
    • ZX:
    • Cylindrical X:
    • Cylindrical Y:
    • Cylindrical Z:
    • Spherical:
  • Center:

Inputs

  • definition_in: (required) SDF definition to which the UVs are applied.
    • Coordinate Types: float vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: Sdf
  • UV Field: (optional) Optional field used to calculate the UV coordinates.
    • Coordinate Types: float vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: vec4

Variables

  • sdf: