Skip to content

Separate output encodings for separate View renders? #1350

Answered by VictorMustin
VictorMustin asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment

Comment options

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