summaryrefslogtreecommitdiff
path: root/servers/rendering/renderer_rd/shaders
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-01-05 10:51:19 +0100
committerGitHub <noreply@github.com>2022-01-05 10:51:19 +0100
commite976cd0b295c4f76d52d3bf07747df8a6750cb71 (patch)
tree8dbb25dbf1880bc015c219b03fcf467053921094 /servers/rendering/renderer_rd/shaders
parent8881e5ac1a95ca31e79c3624caabb6c863945e85 (diff)
parent246fbd5442a2546fbf40c594c3515fb43edc0e82 (diff)
Merge pull request #56208 from williamd67/GPULightmapper-sky-upside-down
Diffstat (limited to 'servers/rendering/renderer_rd/shaders')
-rw-r--r--servers/rendering/renderer_rd/shaders/copy.glsl4
1 files changed, 3 insertions, 1 deletions
diff --git a/servers/rendering/renderer_rd/shaders/copy.glsl b/servers/rendering/renderer_rd/shaders/copy.glsl
index a89f83b5c4..d4d0ed0f56 100644
--- a/servers/rendering/renderer_rd/shaders/copy.glsl
+++ b/servers/rendering/renderer_rd/shaders/copy.glsl
@@ -270,7 +270,9 @@ void main() {
const float PI = 3.14159265359;
vec2 uv = vec2(pos) / vec2(params.section.zw);
- uv.y = 1.0 - uv.y;
+ if (bool(params.flags & FLAG_FLIP_Y)) {
+ uv.y = 1.0 - uv.y;
+ }
float phi = uv.x * 2.0 * PI;
float theta = uv.y * PI;