Shader "Tut/NewBie/SecondShader" { Pass { Name "MYM" Material { Diffuse(1,0.7,0.4,1) Ambient(1,0.7,0.4,1) } Lighting On SetTexture[_] { combine primary } } }
引用另个文件的Pass块
Shader "Tut/NewBie/ThirdShader" { SubShader { UsePass "Tut/NewBie/SecondShader/MYM" } }