Update leenkx/Shaders/voxel_resolve_specular/voxel_resolve_specular.comp.glsl

This commit is contained in:
Onek8 2025-04-04 20:42:41 +00:00
parent 2b9baef712
commit 01bcf029f9

View File

@ -47,8 +47,8 @@ uniform sampler2D sveloc;
void main() { void main() {
const vec2 pixel = gl_GlobalInvocationID.xy; const vec2 pixel = gl_GlobalInvocationID.xy;
vec2 uv = (pixel + 0.5) / postprocess_resolution; vec2 uv = (pixel + 0.5) / postprocess_resolution;
#ifdef _InvY; #ifdef _InvY
uv.y = 1.0 - uv.y uv.y = 1.0 - uv.y;
#endif #endif
float depth = textureLod(gbufferD, uv, 0.0).r * 2.0 - 1.0; float depth = textureLod(gbufferD, uv, 0.0).r * 2.0 - 1.0;