手把手教你最簡單的開源項(xiàng)目托管GitHub入門教程(轉(zhuǎn))
http://www.manew.com/blog-73452-28309.html
自發(fā)光的shader
Shader "Custom/Self_Illumination" {
Properties{
_IlluminCol("Self-Illumination color (RGB)", Color) = (0.64,0.64,0.64,1)
_MainTex("Base (RGB) Self-Illumination (A)", 2D) = "white" {}
}
SubShader{
Tags{ "QUEUE" = "Geometry" "IGNOREPROJECTOR" = "true" }
Pass{
Tags{ "QUEUE" = "Geometry" "IGNOREPROJECTOR" = "true" }
Material{
Ambient(1,1,1,1)
Diffuse(1,1,1,1)
}
SetTexture[_MainTex]{ ConstantColor[_IlluminCol] combine constant * texture }
SetTexture[_MainTex]{ combine previous + texture }
SetTexture[_MainTex]{ ConstantColor[_IlluminCol] combine previous * constant }
}
}
}