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 light in render_to_image_widget example #282

Merged
merged 1 commit into from
Jun 2, 2024

Conversation

rlidwka
Copy link
Contributor

@rlidwka rlidwka commented May 23, 2024

Issue bevyengine/bevy#3462 has been fixed. So since Bevy 0.13, render lights can be specified per RenderLayer.

So our example needs to be updated, because right now render pass does not have any light at all.

I've decided to reuse the same light by specifying RenderLayers::all(), although adding a separate one (with preview_pass_layer and without) is also fine.

Issue bevyengine/bevy#3462 has been fixed. So since Bevy 0.13, render lights can be specified per RenderLayer.

I've decided to reuse the same light by specifying `RenderLayers::all()`, although adding a separate one (with preview_pass_layer and without) is also fine.
@vladbat00
Copy link
Owner

Good catch, thank you

@vladbat00 vladbat00 merged commit 6d0c298 into vladbat00:main Jun 2, 2024
39 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.

2 participants