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

Added RenderLayers to two_passes #11877

Closed
wants to merge 3 commits into from
Closed

Added RenderLayers to two_passes #11877

wants to merge 3 commits into from

Conversation

rydb
Copy link

@rydb rydb commented Feb 15, 2024

Objective

showcase selectively rendering models in the two_passes example to better illustrate the use-case of two_passes

Solution

render_pass currently shows how to render models in two passes, but it doesn't illustrate how to filter which pass sees which model. This pr adds render layers to both the second camera and the cube in the example to illustrate two_passes better.

Copy link
Contributor

Welcome, new contributor!

Please make sure you've read our contributing guide and we look forward to reviewing your pull request shortly ✨

Copy link
Author

@rydb rydb left a comment

Choose a reason for hiding this comment

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

deleted white-space that was causing panic

ran cargo fmt --all
Copy link
Author

@rydb rydb left a comment

Choose a reason for hiding this comment

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

ran cargo fmt --all

@alice-i-cecile alice-i-cecile added A-Rendering Drawing game state to the screen C-Examples An addition or correction to our examples labels Feb 16, 2024
@rydb rydb closed this by deleting the head repository May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen C-Examples An addition or correction to our examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants