Manual     Reference     Scripting   
Unity Manual > Advanced > Shaders

This document is unofficially translated by users.Please see the original document here.

Please send e-mail to here, when you have any question about the translation.


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 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!