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

RendererNodes: Add .isToneMappingState #26463

Merged
merged 5 commits into from Jul 20, 2023
Merged

Conversation

sunag
Copy link
Collaborator

@sunag sunag commented Jul 19, 2023

Related issue: #26435, #26371

Description

Fix the WebGPU examples and follow the changes made in core.

@sunag sunag added this to the r155 milestone Jul 19, 2023
@sunag sunag merged commit e4db75a into mrdoob:dev Jul 20, 2023
18 checks passed
@sunag sunag deleted the dev-tonemappingstate branch July 20, 2023 02:58
@@ -107,13 +109,22 @@ class Nodes extends DataMap {

}

get isToneMappingState() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe applyToneMapping?

const renderer = this.renderer;
const renderTarget = renderer.getRenderTarget();

return renderTarget && renderTarget.isCubeRenderTarget ? false : true;
Copy link
Contributor

Choose a reason for hiding this comment

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

Just ! renderTarget || ! renderTarget.isCubeRenderTarget maybe?

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.

None yet

2 participants