1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-02 19:01:36 +00:00

Merge pull request #56208 from williamd67/GPULightmapper-sky-upside-down

This commit is contained in:
Rémi Verschelde
2022-01-05 10:51:19 +01:00
committed by GitHub

View File

@@ -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;