Skip to content

Shader.WithInput

Name Mandatory Description Default Type
⬅️ Input This shard does not read the attribute value directly. Use Shader.ReadInput within the Then branch if you need to access the shader input value. None
Output ➡️ This shard outputs none None
Name No The name of the attribute to check for `` String
Then No The shards to execute if the attribute is being received. none Shard[Shard]None
Else No The shards to execute if the attribute is not being received none Shard[Shard]None

This shard creates a conditional statement within a shader code. If the shader input specified in the Name parameter is available to the shader stage that calls this shard, the code in the Then parameter will be executed. Otherwise, the code in the Else parameter will execute.