Clear WebGLMultipleRenderTargets textures with different colors

Hi guys,

is it somehow possible to clear the textures bound to WebGLMultipleRenderTargets separately? I want to clear texture[0] to (1,1,1,1) and texture[1] to (0,0,0,0) before rendering anything to them.

The only way I found to clear the textures is by clearing the target itself with renderer.setClearColor() and renderer.clear() but unfortunately this affects both textures.

AFAIK, what you are trying to do is not possible so far.

1 Like