unity shader 效果公式

a.漫反射公式:算法 diff=C*max(0,cos<L,N>);//C是颜色和强度_LightColor0.rgb函数 代码: diff=max(0,dot(i.normal,i.lightDir))//i的单位向量and单位法向量优化 c=tex2D(tex,i.uv)*_LightColor0*diff//_LightColor0表示的是场景中平行光的颜色和强度spa ----------
相关文章
相关标签/搜索