FirstPersonKSP / FreeIva

Work in progress mod for Kerbal Space Program which allows getting out of your seat and moving around the vessel while on IVA.
GNU General Public License v2.0
26 stars 8 forks source link

Fix for #425 causes z-fighting, need to make conditional on deferred #443

Closed JonnyOThan closed 1 month ago

JonnyOThan commented 1 month ago

I suspect maybe the depth mask material that we add to windows should only render in the deferred pass and not the forward one, and that might solve it. Would we then need two shaders, one for deferred and one not?

JonnyOThan commented 1 month ago

Well, doing it only in the deferred pass doesn't work (duh) because it's already written to the depth buffer and the transparent window is at the same depth value.

Probably just need a z-bias like lghassen mentioned