Skip to content

Conversation

@donmccurdy
Copy link
Collaborator

@donmccurdy donmccurdy commented Apr 16, 2023

Cleans up a few (5 / 65) of the remaining examples using .outputColorSpace = LinearSRGBColorSpace. Eventually we should do this for all examples that don't have a reason for Linear-sRGB output. The only reason at the moment would be post-processing.

I'll do similar changes for more examples if there are no objections. This create minor merge conflicts with #25830, but also might make it easier to solve remaining issues in that PR.

Related:

const geometry = new THREE.BoxGeometry( 1, 1, 1 );
geometry.translate( 0, 0.5, 0 );
const material = new THREE.MeshPhongMaterial( { color: 0xffffff, flatShading: true } );
const material = new THREE.MeshPhongMaterial( { color: 0xeeeeee, flatShading: true } );
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This line is just an artistic change. Contrast was lower with the corrected color workflow, so I brought a bit of contrast back.

@Mugen87 Mugen87 merged commit dfac1d5 into mrdoob:dev Apr 16, 2023
@Mugen87 Mugen87 added this to the r152 milestone Apr 16, 2023
@Mugen87
Copy link
Collaborator

Mugen87 commented Apr 16, 2023

This create minor merge conflicts with #25830, but also might make it easier to solve remaining issues in that PR.

I've filed this PR mainly for testing purposes and to get myself more familiar with this change to easier provide support and doing some integration testing. I'll close the PR since cleaning up the merge conflicts will take longer than actually filing the PR from a clean rebased dev.

@donmccurdy donmccurdy deleted the hotfix/cleanup-colormanagement-1 branch April 16, 2023 09:15
@donmccurdy donmccurdy changed the title Examples: Clean up legacy .outputColorSpace = LinearSRGBColorSpace examples Examples: Clean up legacy .outputColorSpace = LinearSRGBColorSpace examples (part 1) Apr 16, 2023
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