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

Add a parameter to CreateScreenshotUsingRenderTarget(Async) to allow … #13384

Conversation

carolhmj
Copy link
Contributor

…layer mask checking

Related forum issue: https://forum.babylonjs.com/t/screenshot-and-layermask-problems-after-13040/36894
Example Playground: #VET9Q9#1

With this, the screenshot RTT will take into account the camera's layer mask (matching the previous screenshot behavior that didn't set the render list), but it will also be possible to turn this behavior off.

@carolhmj carolhmj merged commit 4e6b96d into BabylonJS:master Dec 27, 2022
@carolhmj carolhmj deleted the createScreenshotUsingRenderTargetAddLayerMask branch December 27, 2022 17:39
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.

2 participants