restrictStage
filter
restrictStage
RayTK
v0.36
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
vec4
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
- Return Types:
float
vec4
Sdf
Ray
Light
Particle
- Coordinate Types:
-
Alternate Definition
: (optional)- Coordinate Types:
float
vec2
vec3
vec4
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
- Return Types:
float
vec4
Sdf
Ray
Light
Particle
- Coordinate Types: