【shader】漫反射问题求助
inline fixed4 LightingLamb (SurfaceOutput s, fixed3 lightDir, fixed atten){
float diff=dot(s.Normal,lightDir);
fixed4 c;
c.rgb = (s.Albedo * _LightColor0.rgb * diff) ;
c.a=1.0;
return c;
}
s.Albedo * _LightColor0.rgb这是两个向量相乘吧!?_LightColor0这个变量是哪里的?