In ShaderLabUnity’s language for defining the structure of Shader objects. More info
See in Glossary, you assign tags to a SubShader or Pass by placing a Tags
block inside the block.
Note that both SubShaders and Passes use the Tags
block, but they work differently. Assigning SubShader tags to a Pass has no effect, and vice versa. The difference is where you put the Tags
block:
Tags
block inside a Pass
block.Tags
block inside a SubShader
block but outside a Pass
block.Shader "Examples/ExampleRequireOptions"
{
SubShader
{
Pass
{
Tags { "RequireOptions" = "SoftVegetation" }
// The rest of the code that defines the Pass goes here.
}
}
}