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

WIP: Update depth buffer with parallax mapping result #8486

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

nicopap
Copy link
Contributor

@nicopap nicopap commented Apr 25, 2023

Objective

The current parallax mapping implementation doesn't play well with depth-based feature, since it only updates the fragment color in the main pass.

Effects that depend on depth will not work properly. This includes existing and future rendering features, such as:

  • Shadow mapping
  • Screen space ambient occlusion
  • Fog
  • Temporal anti-aliasing
  • Screen space reflection
  • etc.

Solution

We update pbr_prepass to account for depth evaluated by parallax mapping

TODO

Everything is broken, the code is full of debug stuff 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen C-Enhancement A new feature
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant