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

Support custom sky rotation in SDFGI #100544

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

Namey5
Copy link
Contributor

@Namey5 Namey5 commented Dec 18, 2024

Custom sky rotation was not factored into SDFGI integration.

I've encoded the rotation as a quaternion into unused bits of existing sky push-constants - accuracy of reconstruction could be improved (I've gone for the simplest method), but I'm not sure there would be a noticeable benefit from doing so in this case.

Before:
before-result
After:
after-result
Reference (VoxelGI):
reference

GPU performance is equivalent on my 3080Ti ~(0.06ms-0.07ms for both).

Before:
before-perf
After:
after-perf

Fixes #62793

@Namey5 Namey5 requested a review from a team as a code owner December 18, 2024 06:03
@Namey5 Namey5 force-pushed the sdfgi-sky-rotation branch from 6749e5d to f7d9dcd Compare December 18, 2024 06:08
@Chaosus Chaosus added this to the 4.x milestone Dec 18, 2024
@Namey5 Namey5 force-pushed the sdfgi-sky-rotation branch from f7d9dcd to c22e018 Compare December 19, 2024 11:11
Copy link
Member

@clayjohn clayjohn left a comment

Choose a reason for hiding this comment

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

Looks great. Feel free to rename sky_color if you want, or we can merge as is

@clayjohn clayjohn modified the milestones: 4.x, 4.4 Dec 19, 2024
@Namey5 Namey5 force-pushed the sdfgi-sky-rotation branch from c22e018 to c13dc52 Compare December 20, 2024 00:18
@Namey5 Namey5 force-pushed the sdfgi-sky-rotation branch from c13dc52 to e4fd2f0 Compare December 20, 2024 00:26
@Repiteo Repiteo merged commit 41b468f into godotengine:master Dec 20, 2024
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Dec 20, 2024

Thanks!

@Namey5 Namey5 deleted the sdfgi-sky-rotation branch December 20, 2024 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Vulkan: SDFGI does not obey custom Sky Rotation values
4 participants