another small SSR tweak

This commit is contained in:
Merlin1809
2025-08-03 01:33:51 +02:00
parent 1f64339cce
commit d28c9157e1
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ void main() {
// sky
if (newTex == 1.0 && QuarterResDepth == 1.0) {
gl_FragData[0] = vec4(oldTex, 65000.0);
gl_FragData[0] = vec4(oldTex, 66000.0);
gl_FragData[1].a = 650000.0;
}
#else
+1 -1
View File
@@ -204,7 +204,7 @@ vec3 rayTraceSpeculars(vec3 dir, vec3 position, float dither, float quality, boo
float sp = invLinZ_DH(sqrt(sampleDepth));
if(sp < max(minZ, maxZ) && sp > min(minZ, maxZ) && sampleDepth <= 1.0) {
if(sp < max(minZ, maxZ) && sp > min(minZ, maxZ)) {
hitPos = vec3(spos.xy/RENDER_SCALE, sp);
break;
}