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 LightmapGI taking editor-only and sky-only lights into account #83861

Merged

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Oct 23, 2023

These lights are not visible when running the project (or at all), so they shouldn't affect the lightmap baking process.

VoxelGI already takes care of sky-only lights, but not editor only lights (I've looked and didn't find a way to implement it).

These lights are not visible when running the project (or at all),
so they shouldn't affect the lightmap baking process.
@Calinou Calinou requested review from a team as code owners October 23, 2023 20:57
@Calinou Calinou added this to the 4.2 milestone Oct 23, 2023
@jcostello
Copy link
Contributor

Nice fix, this help me to not disable the light mode before baking :)

@@ -52,7 +52,7 @@
[b]Note:[/b] Only effective for [OmniLight3D] and [SpotLight3D], and only when [member shadow_enabled] is [code]true[/code].
</member>
<member name="editor_only" type="bool" setter="set_editor_only" getter="is_editor_only" default="false">
If [code]true[/code], the light only appears in the editor and will not be visible at runtime.
If [code]true[/code], the light only appears in the editor and will not be visible at runtime. If [code]true[/code], the light will never be baked in [LightmapGI] regardless of its [member light_bake_mode].
Copy link
Member

Choose a reason for hiding this comment

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

Repeating "if true" sounds repetitive. How about "Additionally,"?

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.

Makes sense to me

@akien-mga akien-mga merged commit ea0ab44 into godotengine:master Oct 24, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

@Calinou Calinou deleted the lightmapgi-fix-editor-only-sky-only branch October 25, 2023 02:34
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.

4 participants