引用另个Shader中的Pass块

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

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"
}
}

标签: Pass

Powered by emlog  蜀ICP备18021003号-1   sitemap

川公网安备 51019002001593号