float NdotL = dot(N, L);. Out.Color = lights[i].vAmbient;. Out.ColorSpec = 0; if(NdotL > 0.f). {. //compute diffuse color. Out.Color += NdotL * lights[i].
確定! 回上一頁