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

NodeMaterial: Add .fog and .colorSpace properties #26440

Merged
merged 1 commit into from Jul 16, 2023
Merged

Conversation

sunag
Copy link
Collaborator

@sunag sunag commented Jul 16, 2023

Description

Some materials like MeshNormalMaterial not be affected by settings defined in Renderer.colorSpace.

@sunag sunag added this to the r155 milestone Jul 16, 2023
@sunag sunag merged commit 3d53596 into mrdoob:dev Jul 16, 2023
18 checks passed
@sunag sunag deleted the dev-work branch July 16, 2023 19:49
this.lights = true;
this.normals = true;
this.unlit = this.constructor === NodeMaterial.prototype.constructor; // Extended materials are not unlit by default
this.colorSpace = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe applyColorSpace?

Copy link
Collaborator Author

@sunag sunag Sep 17, 2023

Choose a reason for hiding this comment

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

Maybe we can make it more like material.toneMapped?

this.toneMapped = true;

Copy link
Contributor

Choose a reason for hiding this comment

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

So... colorSpaced?

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