godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
89.15k stars 20.21k forks source link

Vulkan: OmniLight3D projectors are upside down compared to PanoramaSkyMaterial's default orientation #57704

Open Calinou opened 2 years ago

Calinou commented 2 years ago

Godot version

4.0.alpha (9d1626b4d)

System information

Fedora 34, GeForce GTX 1080 (NVIDIA 495.46)

Issue description

OmniLight3D projectors are upside down compared to PanoramaSkyMaterial's default orientation. We should change this to make it more user-friendly to set up projector textures, and ensure that they always appear the right way up by default.

On the screenshot below, each of the inverted spheres contains an OmniLight3D with a projector texture that is the same as the background sky.

Left: Default OmniLight3D rotation (incorrect), right: Corrected OmniLight3D rotation (0, 0, -180°) in the inspector

2022-02-06_12 56 44

Steps to reproduce

Minimal reproduction project

test_projector_sky_comparison.zip

Calinou commented 2 years ago

@dusakus Maybe you have some insight on this, since you've worked on the projector code recently :slightly_smiling_face: