Modes are different ways your shader will render under different passes or conditions.
A mode can be specified in three ways:
Mode()
Mode( S_MODE_COMBO )
- sets the combo when this mode is activeMode( "mode_fallback.shader" )
- uses a different shader for this modeYour typical modes section might look like:
MODES
{
Forward();
Depth();
}
Default |
Used for compute shaders |
---|---|
Forward |
Standard rendering |
Depth |
Depth prepass, shadows |
ToolsShadingComplexity |
Shows Quad Overdraw |