mirror of
https://github.com/X0nk/Bliss-Shader.git
synced 2026-10-10 05:03:04 +08:00
make indoor sky reflection work again
This commit is contained in:
@@ -199,11 +199,11 @@ vec4 screenSpaceReflections(
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
vec3 raytracePos = rayTraceSpeculars(reflectedVector, viewPos, noise, quality, isHand, reflectionLength, roughness);
|
vec3 raytracePos = rayTraceSpeculars(reflectedVector, viewPos, noise, quality, isHand, reflectionLength, roughness);
|
||||||
|
|
||||||
if (raytracePos.z > 1.0
|
if ( (raytracePos.z > 1.0 && backgroundReflectMask > 0.999999)
|
||||||
#ifdef SSR_SELF_REFLECT_FIX
|
#ifdef SSR_SELF_REFLECT_FIX
|
||||||
|| distance(gl_FragCoord.xy*texelSize, raytracePos.xy) < 0.002
|
|| distance(gl_FragCoord.xy*texelSize, raytracePos.xy) < 0.002
|
||||||
#endif
|
#endif
|
||||||
) return reflection;
|
) return reflection;
|
||||||
|
|
||||||
// use higher LOD as the reflection goes on, to blur it. this helps denoise a little.
|
// use higher LOD as the reflection goes on, to blur it. this helps denoise a little.
|
||||||
|
|||||||
Reference in New Issue
Block a user