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

feat: sh skylighting, fixes and cleanup #334

Merged
merged 70 commits into from
Jul 22, 2024
Merged

feat: sh skylighting, fixes and cleanup #334

merged 70 commits into from
Jul 22, 2024

Conversation

doodlum
Copy link
Owner

@doodlum doodlum commented Jul 9, 2024

  • dynamic cubemaps are now about 16 times faster.
  • skylighting is done in prepass and higher quality, using spherical harmonics.
  • wetness occlusion is part of skylighting.
  • fixed black LOD.
  • disabled VRS by default .
  • fixed seams related to wetness.
  • disabled ambient pass unless using SSGI, to improve performance. this will likely be removed entirely after the merge.
  • much faster skylighting occlusion map rendering, on a timer.
  • improved skylighting tree rendering to be less dark.
  • low quality depth map from terrain blending used to improve performance on multiple features.
  • fixed dynamic cubemap feedback loop.
  • GetTemporal() utility function
  • wetness fixes so it doesn't render under roofs

doodlum and others added 30 commits July 6, 2024 16:40
chore: convolve and ZH3 hallucination for diffuse skylighiting
@doodlum doodlum marked this pull request as ready for review July 18, 2024 17:24
half2(-0.81409955, 0.91437590),
half2(0.19984126, 0.78641367),
half2(0.14383161, -0.14100790)
float2 PoissonDisc[] = {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where are these values from?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://www.asawicki.info/download.php5?x=Productions%2FApplications%2FPoissonDiscGenerator

Update 2023-11: As my colleague pointed out, taking only a small number of first samples (e.g. 16) from the array I generated doesn't make a good uniform distribution across the surface, so for that, I recommend to use some other method (e.g. samples from a grid + random jitter) or make your own implementation of this idea of "progressive Poisson Disc".

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops. I think we can look into this after the merge.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also, can probably put the [-1,1] values in the array rather than remapping it in code.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah. When it was 16 elements it was annoying to do that by hand. 4 is easier.

@doodlum doodlum merged commit 52ccd51 into dev Jul 22, 2024
5 checks passed
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.

4 participants