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

Render highway/notes as opaques #977

Open
wants to merge 14 commits into
base: dev
Choose a base branch
from
Open

Conversation

theli-ua
Copy link

@theli-ua theli-ua commented Feb 22, 2025

This is in a state where I believe everything is working as intended. Everything is rendered as opaques (mostly, other than hit flash/smoke effects obviously). And fade is applied afterwards as a post effect. Fade is applied as part of UICurve shader right now but could be applied separately. its just cheaper to do it right there. Fade/start position is calculated by projecting highway's coordinates onto the screen viewpoint. As far as I can see it looks the same as current code.
Biggest benefit is that no highway-related materials have to carry whole fading around and not care about it at all.
Second is fixing weird issues like kick note peeking through cymbals and whatnot. or the kick note being incorrect color when its in the fade zone because it doesn't have tonemapping applied correctly to it

@theli-ua
Copy link
Author

This does fix some quirks like notes/kicknote blending weirdly where you see kick note through a cymbal/etc, or the kick note flashing red before it turns orange at the edge of fading

@theli-ua theli-ua force-pushed the opaque branch 3 times, most recently from e7a0b02 to 1eeefba Compare February 24, 2025 06:15
@theli-ua theli-ua marked this pull request as ready for review February 24, 2025 06:37
@theli-ua
Copy link
Author

theli-ua commented Mar 7, 2025

Forgot to mention, but this also removes the hack to clear z-depth between rendering various parts. So this also should significantly reduce the overdraw when rendering highways

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant