pmndrs / three-stdlib

📚 Stand-alone library of threejs examples designed to run without transpilation in node & browser
https://npmjs.com/three-stdlib
MIT License
676 stars 110 forks source link

OutputPass #344

Open s3ththompson opened 5 months ago

s3ththompson commented 5 months ago

three-stdlib should include the OutputPass from examples/jsm/postprocessing/OutputPass.js as a postprocessing pass.

This is the new, recommended way to apply color space / tonemapping adjustments as a postprocessing pass.

Additionally, the Effects component in Drei should be updated to use OutputPass, per https://github.com/pmndrs/drei/issues/1707.

CodyJasonBennett commented 5 months ago

See the discussion there. We can add an OutputPass, but switching to it in Drei is a breaking change as well as use of premultiplied alpha here. We'd have to coordinate the two, but I'd recommend pmndrs/postprocessing for any production project.