restrictStage

filter
restrictStage
RayTK
v0.40

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

Name Description Regular Handling Read-Only Handling
Enable
Include Primary

Whether the operator should

Baked Baked
Include Shadow Baked Baked
Include Reflect Baked Baked
Include Material Baked Baked
Include Occlusion Baked Baked
Include Volumetric Baked Baked
Include Volumetric Shadow Baked Baked
Include Normal Baked Baked

Inputs

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