forked from LeenkxTeam/LNXSDK
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:
commit
ef25d15aed
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user