reflect

reflect

Shortcuts:
  • ref
Keywords:
  • flip
  • mirror
  • reflect

Reflects space across a plane.

Parameters

Name Description Regular Handling Read-Only Handling
Enable
Direction

Axis and direction across which to reflect.

Runtime Semi-Baked
  • Custom:
  • X+:
  • X-:
  • Y+:
  • Y-:
  • Z+:
  • Z-:
Plane Normal

Vector that the cut plane faces. Note that this is only a direction and not a position in space.

Runtime Baked
Offset

Moves the reflection plane along the normal that it faces.

Runtime Baked
Shift

Moves the whole resulting shape along the normal.

Runtime Baked
Exposeiteration

Whether to expose which side of the plane a point is on as an iteration value for upstream ops.

Enable Blend

Whether to stretch out the space near the reflection plane to smooth out the border between the sides.

Semi-Baked Semi-Baked
Blending

How much to stretch the space near the reflection plane.

Runtime Baked
Iteration Type

How to expose information about the current side as iteration values.

Semi-Baked Semi-Baked
  • None:
  • Index (0/1):
  • Signed (-1/1):

Inputs

  • definition_in: (optional)
    • Coordinate Types: vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float vec4 Sdf Ray Light Particle
    • Supports Variables: sign index
    • Supports Variables From Inputs: offsetField shiftField
  • Offset Field: (optional)
    • Coordinate Types: vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float
    • Supports Variables: sign index
    • Supports Variables From Inputs: shiftField
  • Shift Field: (optional)
    • Coordinate Types: vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float

Variables

  • sign:
  • index: