fix flashlight not working

This commit is contained in:
Merlin1809 committed 2025-07-22 13:29:16 +02:00
1 parent c3ea399db6
commit 50ec79326e
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -767,7 +767,7 @@ if (gl_FragCoord.x * texelSize.x < 1.0 && gl_FragCoord.y * texelSize.y < 1.0 )
vec4 flashLightSpecularData = vec4(0.0);
#ifdef FLASHLIGHT
Indirect_lighting += calculateFlashlight(FragCoord.xy*texelSize/RENDER_SCALE, viewPos, vec3(0.0), worldSpaceNormal, flashLightSpecularData);
Indirect_lighting += calculateFlashlight(FragCoord.xy*texelSize/RENDER_SCALE, viewPos, vec3(0.0), worldSpaceNormal, flashLightSpecularData, false);
#endif
vec3 FinalColor = (Indirect_lighting + Direct_lighting) * Albedo;
+1 -1
View File
@@ -366,7 +366,7 @@ vec4 bilateralUpsample(out float outerEdgeResults, float referenceDepth, sampler
float edgeSum = 0.0;
float threshold = 0.0000005;
vec2 coord = gl_FragCoord.xy - 2.0;
vec2 coord = gl_FragCoord.xy - 1.5;
vec2 UV = coord;
const ivec2 SCALE = ivec2(1.0/VL_RENDER_RESOLUTION);