renormalize world normal in pixel shader

shadows
Evan Hemsley 2020-08-16 11:48:51 -07:00
parent 393b8bcb03
commit f972392544
2 changed files with 8 additions and 8 deletions

Binary file not shown.

View File

@ -162,7 +162,7 @@ float4 ComputeColor(
float roughness float roughness
) { ) {
float3 V = normalize(EyePosition - worldPosition); float3 V = normalize(EyePosition - worldPosition);
float3 N = worldNormal; float3 N = normalize(worldNormal);
float3 F0 = float3(0.04, 0.04, 0.04); float3 F0 = float3(0.04, 0.04, 0.04);
F0 = lerp(F0, albedo, metallic); F0 = lerp(F0, albedo, metallic);