R-T-B / Kopernicus

Kopernicus is a mod for Kerbal Space Program which allows users to replace the planetary system used by the game.
GNU Lesser General Public License v3.0
32 stars 11 forks source link

fix ring shader issues with light directions, and some interpolated but not normalized world positions #27

Closed LGhassen closed 3 years ago

LGhassen commented 3 years ago

Fixed some issues resulting in the ring shader not correctly lit (appearing to not be lit from the correct direction).

Not sure if this fixes flickering or not as I didn't run into it. I posted the compiled shaders (compiled for latest KSP unity version) in discord. Note: didn't test with OpenGL but it should have compiled correctly for it.

R-T-B commented 3 years ago

It looks to work good on my non-openGL box. If OpenGL users complain, I'll touch bases with you, but lgtm from here.