Merge pull request 'Update leenkx/Shaders/voxel_resolve_specular/voxel_resolve_specular.comp.glsl' (#35) from Onek8/LNXSDK:main into main

Reviewed-on: LeenkxTeam/LNXSDK#35
This commit is contained in:
LeenkxTeam 2025-04-04 20:47:40 +00:00
commit ef25d15aed

View File

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