Shaders
Unity Manual > Advanced > Shaders

Shaders

All rendering in Unity is done with Shaders - small scripts that let you configure the how the graphics hardware is set up for rendering. Unity ships with 40+ built-in shaders but you can extend this by making more yourself. The built-in shaders are documented in Built-in Shader Guide.

Shaders in Unity are written in a language called ShaderLab, which is similar to Microsoft's .FX files or NVIDIA's CgFX. If you want to write your own shaders, including custom vertex & fragment programs, this section and ShaderLab reference will explain you how.

To get you started from some examples, we ship the ShaderLab source code for all built-in shaders. You can get them at Resources section.

Read on for introduction to ShaderLab, and check out ShaderLab reference!