Game Development Reference
In-Depth Information
Additionally, you can write
#pragma debug
inside the
CGPROGRAM
block, and then
the surface compiler will spit out a lot of comments of the generated code. You can view
them using an open compiled shader in the
Shader
inspector.