Separate output encodings for separate View renders? #1350
Answered
by
VictorMustin
VictorMustin
asked this question in
Q&A
-
Hey! Is there a way to set different output encoding settings for multiple Views ? One view would be linear and the other would be sRGB. |
Beta Was this translation helpful? Give feedback.
Answered by
VictorMustin
Mar 17, 2023
Replies: 1 comment
-
Nevermind, found a working solution. For anyone with the same question I forked View and added a linear prop. And then replaced this
with this
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
VictorMustin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nevermind, found a working solution. For anyone with the same question I forked View and added a linear prop. And then replaced this
state.gl.render(children ? virtualScene : scene, camera)
with this
if (linear) { state.gl.outputEncoding = THREE.LinearEncoding } state.gl.render(children ? virtualScene : scene, camera) state.gl.outputEncoding = THREE.sRGBEncoding