Skip to content

Re-using material gives different color #2699

Answered by drcmda
coada asked this question in Q&A
Discussion options

You must be logged in to vote

the correct solution isn't convertSRGBToLinear but

import * as THREE from 'three'

THREE.ColorManagement.legacyMode = false

you need this if you're dealing with colors created in global space, and it needs to be set first, before any color. if that color were inside a canvas component it would be safe.

the problem is with three itself, they are aware of it but it won't change until they manage colors by default.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by coada
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants