Skip to content

Commit

Permalink
Fixed the fix for the reflection fix
Browse files Browse the repository at this point in the history
  • Loading branch information
doodlum committed Jul 25, 2023
1 parent a8d9b70 commit f7b8cdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/Shaders/Lighting.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -1944,7 +1944,7 @@ PS_OUTPUT main(PS_INPUT input)

# if !defined(LANDSCAPE) && defined(SPECULAR)
// Green reflections fix
psout.ScreenSpaceNormals.w = psout.ScreenSpaceNormals.w * (psout.Albedo.w == 1);
psout.ScreenSpaceNormals.w = psout.ScreenSpaceNormals.w * pow(psout.Albedo.w, 10);
# endif // !defined(LANDSCAPE) && defined(SPECULAR)

float3 screenSpaceNormal;
Expand Down

0 comments on commit f7b8cdf

Please sign in to comment.