Phong 模型解释
摘要:
Phong模型 1 1 inline fixed4 LightingPhong (SurfaceOutput s, fixed3 lightDir, half3 viewDir, fixed atten) 2 2 { 3 3 float diff = dot(s.Normal, lightDir); 4 4 float3 reflectionVector = normalize(2.0 * s.Normal * diff - lightDir); 5 5 float spec = pow(max(0,dot(reflectionVector,viewDir))... 阅读全文
posted @ 2013-12-10 15:59 0x9801 阅读(775) 评论(0) 推荐(0)
浙公网安备 33010602011771号