Image rendered from useLoader @react-three/fiber using shaderMaterial has different color from its original color #2198
Answered
by
mwmwmw
reynaldlamury
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
mwmwmw
Apr 8, 2022
Replies: 1 comment 2 replies
-
It's loading the image with the Here is an example. Setting it to https://codesandbox.io/s/le-tigre-linear-encoding-04sxr8?file=/src/index.js |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
reynaldlamury
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's loading the image with the
sRGBencoding
try setting it to the defaultLinearEncoding
Here is an example. Setting it to
sRGBencoding
produces a darker image. Whereas the default (LinearEncoding
) looks right.https://codesandbox.io/s/le-tigre-linear-encoding-04sxr8?file=/src/index.js