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

restrictStage

Restricts which render stages an operator is used in.

This can be used for optimization, by switching off expensive ROPs for shadows. It can also be used to have shapes that are invisible but still cast shadows.

In cases where the main operator is not being included, this will produce either the alternative operator input (if connected), or a default value otherwise. The default value is “non-hit” for SDFs, and 0 / vec4(0) etc for other types.

Parameters

  • Enable:
  • Include Primary: Whether the operator should
  • Include Shadow:
  • Include Reflect:
  • Include Material:
  • Include Occlusion:
  • Include Volumetric:
  • Include Volumetric Shadow:
  • Include Normal:

Inputs

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