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

Fix slicing issue #1

Merged
merged 5 commits into from
Jul 26, 2024
Merged

Fix slicing issue #1

merged 5 commits into from
Jul 26, 2024

Conversation

sourcelocation
Copy link

As discussed in the email, this fixes the issue where the baked Lightmap at runtime displays incorrectly. This pr fixes it.

Screen.Recording.2024-07-25.at.12.55.51.mov

However there are two drawbacks at the moment. First, you have to set the previous Light Data to null. Can't figure out what's the issue as I'm not knowledgable enough in Godot's codebase. And the second one is there's no denoiser.

Screenshot 2024-07-25 at 13 08 13

@sourcelocation
Copy link
Author

Test project which I used to test this PR: https://github.com/sourcelocation/lightmapruntimebakingtest

@sourcelocation
Copy link
Author

Turns out the exported projects can't bake lightmaps as of now... at all. Seems like Lightmapper isn't available in exported projects.

Screenshot 2024-07-25 at 13 54 24

@sourcelocation
Copy link
Author

Lightmap baking now also works for exported builds if module_lightmapper_rd_enabled and module_xatlas_unwrap_enabled options are supplied 👍
https://github.com/user-attachments/assets/3a768b3d-a05e-4001-9207-d0ef824f93a7

@RisingThumb RisingThumb merged commit 492b447 into RisingThumb:expose-lightmap-baking Jul 26, 2024
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.

2 participants