react-postprocessing
react-postprocessing copied to clipboard
Extend Texture Effect to support opacity
This PR extends the Texture Effect to support a new parameter called opacity
. this parameter is used when creating TextureEffect
to set the opacity of BlendMode
. The idea and practice comes from the example provided from postproccessing
library.
the reference: https://github.com/pmndrs/postprocessing/blob/e758f65ef2277d006c9785d8148926bf78235441/demo/src/demos/TextureDemo.js#L194