Version: Unity 6.1 Alpha (6000.1)
Language : English
Changing how shaders work via branching and keywords
Introduction to static and dynamic branching

Branching in shaders

Branching is one way of introducing conditional behavior into shaderA program that runs on the GPU. More info
See in Glossary
code.

Page Description
Introduction to static and dynamic branching How static and dynamic branching work, and the advantages and disadvantages of each.
Use static or dynamic branching in a shader Use static and dynamic branching in your shader code.
Branch in a shader via built-in macros Resources for adding a condition in a shader based on the platform, shader model, Unity version, or shader pass.

Additional resources

Changing how shaders work via branching and keywords
Introduction to static and dynamic branching