Postprocessing: Use TextureEffect as material

Created on 18 Jan 2019  路  4Comments  路  Source: vanruesc/postprocessing

Is there any way to use a TextureEffect as material from an object?
I need to use blend mode on a texture in a plane, the texture is transparent and need to affect the color of the object behind.
I tried to look into source code and documentation but did not find anyway to do that by myself.

Edit: Works for me if i am able to use an BlendMode on a Three.MeshBasicMaterial as well.

Thanks a lot!

question

All 4 comments

Hi,

the postprocessing library is intended for screen space image manipulation. It's not advisable to use its components for common 3D scenes unless you know what you're doing.

The built-in materials from three have a Material.blending property that you can set to CustomBlending. There's a list of available blend functions in the CustomBlendingEquation docs. If that doesn't offer enough flexibility for your use case, I'm afraid you're out of luck.

Yeah, I need overlay and divide blending, thanks for the help!

Check out the Refraction implementation from the three.js examples. You could customize the water shader that is used in this example to only implement texture blending.

I'll try that, thanks a lot!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nagman picture nagman  路  3Comments

scarletsky picture scarletsky  路  3Comments

emmelleppi picture emmelleppi  路  4Comments

dghez picture dghez  路  4Comments

brunoimbrizi picture brunoimbrizi  路  4Comments