引用另个Shader中的Pass块

作者:追风剑情 发布于:2014-5-30 2:08 分类:Shader

  1. Shader "Tut/NewBie/SecondShader" {
  2. Pass {
  3. Name "MYM"
  4. Material {
  5. Diffuse(1,0.7,0.4,1)
  6. Ambient(1,0.7,0.4,1)
  7. }
  8. Lighting On
  9. SetTexture[_] { combine primary }
  10. }
  11. }
  1. 引用另个文件的Pass
    1. Shader "Tut/NewBie/ThirdShader" {
  1. SubShader {
  2. 	UsePass "Tut/NewBie/SecondShader/MYM"
  3. }
  4. }

标签: Pass

Powered by emlog  蜀ICP备18021003号-1   sitemap

川公网安备 51019002001593号