RigsOfRods / rigs-of-rods

Main development repository for Rigs of Rods soft-body physics simulator
https://www.rigsofrods.org
GNU General Public License v3.0
990 stars 175 forks source link

Reverted sky shader #3150

Closed tritonas00 closed 1 month ago

tritonas00 commented 2 months ago

Reverts https://github.com/RigsOfRods/rigs-of-rods/commit/b1e645725cb237b26f0c932256c1df6773f865fe

Issue: It doesn't render correctly in RTTs (water reflection, mirrors etc...)

Paroj suggested: https://forums.ogre3d.org/viewtopic.php?p=555671#p555671

I failed to do it. I think the proper solution should be to use a regular skybox/skyplane and reconstruct the shader to that.

I failed do it also.

And there is 0 person with shader knowledge in the whole RoR community to help.

ohlidalp commented 1 month ago

Merging this grudgingly.

I'm quite sure the problem is just not correctly accounting for the position of the RTT camera - for example rear view mirrors deal with yaw (rotation around up axis) correctly, but pitch and roll are broken. But I didn't find the time to fix it.