Control material properties in the Inspector window
Shader keywords workflow
Changing how shaders work using keywordsResources and techniques for adding shaderA program that runs on the GPU. More info
See in Glossary keywords, using them to create branches and shader variants, and toggling them in the Unity Editor or in a script.
#pragma
directive in HLSL code to declare keywords. Make shader behavior conditional on keywords Use an if
statement in HLSL code to mark parts of your shader code conditional based on whether you enable or disable a shader keyword. Toggle shader keywords in the Editor Add material properties for shader keywords. Toggle shader keywords in a script Check if a keyword is enabled or disabled, and enable and disable it. Add built-in keyword sets Use Unity shader directive shortcuts to create sets of shader keywords and variants. Additional resources
pragma
directives referenceControl material properties in the Inspector window
Shader keywords workflow
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4