Render to texture with blending alpha channel

Hello from Russia!
I modified this example: three.js webgl - texture - partial update
I need to put several textures to one but with alpha blending.
In example was added alpha channel and rgba format, but there is no blending: https://codepen.io/illuminsi/pen/GRmbjWQ
Function “renderer.copyTextureToTexture” is using gl.texSubImage2D and mayby cant done blending.

texSubImage2D() does not support blending, it just copies data.

If you want to blend two textures you have to perform an actual render pass.

1 Like