鸟语天空
引用另个Shader中的Pass块
post by:追风剑情 2014-5-30 2:08

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

评论:
发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容