-
-
Notifications
You must be signed in to change notification settings - Fork 407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Effects are visible through the water surface #698
Comments
This is due to the rending order. |
If what CodyJL said is right, maybe using setWaterDrawnLast makes a difference? |
No! Effects are still in front of water with setWaterDrawnLast(true) |
Creating a simple shader and adding this code into the main pass does actually solve this issue: ...however since water is now writing to depth buffer, it causes zfighting with anything that is close and planar to it (including boat wake and other water effects). I think the final solution would be applying another shader to these water effects (duh...) that gives them so much depth bias that they will draw on top of the water surface... |
Can you check if that shader fixes the bug of not being able to see water through car windows @Einheit-101 |
Alright, reconfirms my belief that SAs rendering order is crap. |
setWaterDrawnLast on top of this shader doesnt work either. It looks like the water is simply culled away. Yes, GTA render order is messed up. |
Describe the bug
This old rendering bug is annoying for a long time now. Effects ignore the water in front of them.
To reproduce
Expected behaviour
Effects should render correctly
Screenshots
Multi Theft Auto v1.5.6-release-15932 (Windows)
Additional context
Is there maybe a shader that can be applied to effects textures that fixes this issue?
The text was updated successfully, but these errors were encountered: