fix opengl im2d. d3d still no fog

This commit is contained in:
aap
2021-02-12 13:58:11 +01:00
parent 4c77fb5754
commit fb859c0fa6
5 changed files with 60 additions and 9 deletions

View File

@@ -11,7 +11,7 @@ float3 DoDirLight(Light L, float3 N)
return l*L.color.xyz;
}
float3 DoDirLightSpec(Light L, float3 N, float3 V, float power))
float3 DoDirLightSpec(Light L, float3 N, float3 V, float power)
{
return pow(saturate(dot(N, normalize(V + -L.direction.xyz))), power)*L.color.xyz;
}