-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
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
TSL: parallaxUV
#27739
TSL: parallaxUV
#27739
Conversation
Wooow! |
const roughnessTexture = loader.load( 'textures/ambientcg/Ice002_1K-JPG_Roughness.jpg' ); | ||
roughnessTexture.colorSpace = THREE.SRGBColorSpace; | ||
|
||
const normalTexture = loader.load( 'textures/ambientcg/Ice002_1K-JPG_NormalGL.jpg' ); | ||
normalTexture.colorSpace = THREE.NoColorSpace; | ||
|
||
const displaceTexture = loader.load( 'textures/ambientcg/Ice002_1K-JPG_Displacement.jpg' ); | ||
displaceTexture.colorSpace = THREE.SRGBColorSpace; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
roughness
and displacement
should be NoColorSpace
.
And likewise, the normal texture, but its color profile is sRGB
. Regardless, I'd leave it as NoColorSpace
.
/ping @donmccurdy for second opinion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, we should use NoColorSpace
for all textures containing non-color data, including all three here. The color profiles tend to be unreliable, and I'm not sure there's any way to tag an image clearly identifying it as non-color data. If the material looks incorrect when non-color textures are annotated with NoColorSpace
, then we would need fix the textures.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description
parallaxUV
can offer a depth effect in the material without needing RTT. Many effects such as car painting, ice, some types of water use this effect.Usage:
Live demo