fix minimum f0 detection for forward renderer

This commit is contained in:
Xonk
2026-07-15 00:21:35 -04:00
parent ebe513a1c5
commit 1313459f0c
+2
View File
@@ -770,6 +770,8 @@ if (gl_FragCoord.x * texelSize.x < 1.0 && gl_FragCoord.y * texelSize.y < 1.0 )
if(UnchangedAlpha <= 0.0 && !isReflective) f0 = 0.0;
if(SpecularTex.g == 0.0 && SpecularTex.r > 0.0) f0 = harcodedF0;
if (f0 > 0.0){
if(isReflective) f0 = max(f0, harcodedF0);