mirror of
https://github.com/Merlin1809/Eclipse-Shader.git
synced 2026-10-12 02:08:18 +08:00
fix flashlight not working
This commit is contained in:
1 parent
c3ea399db6
commit
50ec79326e
2 files changed
+2
-2
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user