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
1.03k stars 178 forks source link

Reverted sky shader #3150

Closed tritonas00 closed 6 months ago

tritonas00 commented 7 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 6 months 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.