Diffuse Fast
Diffuse Fast看名字就知道是个阉割版的Diffuse,代码更是少到算上括号才7行。真的不是我在水篇数,他自己就7行。一眼就看完了:
Shader "Legacy Shaders/Diffuse Fast" {
//只采样主纹理,再叠加个颜色完事
Properties {
_Color ("Main Color", Color) = (1,1,1,1)
_MainTex ("Base (RGB)", 2D) = "white" {}
}
//相当于只有_Color和_MainTex的VertexLit Shader
Fallback "Legacy Shaders/VertexLit"
}
Diffuse
略
Specular
删掉法线的Bumped Specular,略