# DotScreenPass with original colors. Mask from black-white texture

**URL:** <https://discourse.threejs.org/t/dotscreenpass-with-original-colors-mask-from-black-white-texture/66460>\
**Category:** Questions\
**Tags:** post-processing, masking\
**Created:** [June 5, 2024, 2:28pm UTC](https://discourse.threejs.org/t/dotscreenpass-with-original-colors-mask-from-black-white-texture/66460 "2024-06-05T14:28:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndyK](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/andyk/32/37580_2.png) [@AndyK](https://discourse.threejs.org/u/AndyK)\
**Post date:** [June 5, 2024, 2:28pm UTC](https://discourse.threejs.org/t/dotscreenpass-with-original-colors-mask-from-black-white-texture/66460/1 "2024-06-05T14:28:43Z")

</div>

Hi!  
I’m trying to achieve a DotScreenPass effect but instead of black and white I want to use scene colors from before applying this effect.

So I have first composer doing the colorful scene:  
let composer = new EffectComposer(this.renderer);  
composer.renderToScreen = false;  
composer.addPass(renderPass);

then I have a second composer for the effect:  
let composer2 = new EffectComposer(this.renderer, renderTarget2);  
composer2.addPass(clearPass);  
let texturePass = new TexturePass(this.composer.renderTarget2.texture);  
composer2.addPass(texturePass);  
composer2.addPass(dotScreenPass);  
// Here I would need to use current output as a mask (black=0, white=1).  
composer2.addPass(texturePass); //And here adding a colorful texture.

So I think the question comes down to: how do I add a MaskPass based on previous effect outputting BW?
