Skip to content
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

Deferred renderpath: fix volumetric light combined with translucent materials #2523

Merged

Conversation

MoritzBrueckner
Copy link
Collaborator

Fixes an issue described in #2520 that would draw translucent materials on top of the volumetric light when using the deferred renderpath.

Previously the render order on deferred was Volumetric Light -> World -> Translucenct Materials, now it is World -> Translucent Materials -> Volumetric Light. As a side effect, the world shader is now also subject to light scattering, but god rays still work exactly as before. We discussed this a little on the Discord server and came to the conclusion that this change is acceptable and more correct.

I wasn't sure whether it is required to unbind depth for the volumetric lighting like it was done before, but it isn't done in the forward render path and it worked without issues on Krom (DirectX), html5 and HL (DirectX) on many different example files. On OpenGL platforms the depth un-binding is disabled anyways.

@MoritzBrueckner MoritzBrueckner added the Release Notes: Fixes A pull request that fixes something. Used to generate release notes. label Jul 21, 2022
This was referenced Jul 21, 2022
@luboslenco luboslenco merged commit a600db7 into armory3d:main Jul 23, 2022
@MoritzBrueckner MoritzBrueckner deleted the fix-volumetric-translucency-deferred branch July 23, 2022 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Release Notes: Fixes A pull request that fixes something. Used to generate release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants