Merlin1809
2026-06-19 21:44:39 +02:00
parent 69530b76c3
commit 430c471bad
+2 -2
View File
@@ -200,7 +200,7 @@ vec3 rayTraceSpeculars(vec3 dir, vec3 position, float dither, float quality, con
#endif #endif
#if (defined VOXY && defined VOXY_REFLECTIONS) || (defined DISTANT_HORIZONS && defined DH_SCREENSPACE_REFLECTIONS) #if (defined VOXY && defined VOXY_REFLECTIONS) || (defined DISTANT_HORIZONS && defined DH_SCREENSPACE_REFLECTIONS)
if (sp >= 1.0){ if (sp > 0.9999999){
#ifdef FULLRESDEPTH #ifdef FULLRESDEPTH
sp = texelFetch(dhVoxyDepthTex, ivec2(spos2.xy/texelSize),0).r; sp = texelFetch(dhVoxyDepthTex, ivec2(spos2.xy/texelSize),0).r;
@@ -2405,7 +2405,7 @@ vec3 specularReflections(
,isWater ,isWater
#endif #endif
); );
#ifdef VOXEL_REFLECTIONS #if defined VOXEL_REFLECTIONS && (defined DEFERRED_BACKGROUND_REFLECTION || defined FORWARD_BACKGROUND_REFLECTION)
backgroundReflection *= backgroundTint; backgroundReflection *= backgroundTint;
#endif #endif
// darkening for metals. // darkening for metals.