# OutlinePass is not displaying correctly and keeps flickering

**URL:** <https://discourse.threejs.org/t/outlinepass-is-not-displaying-correctly-and-keeps-flickering/89442>\
**Category:** Questions\
**Tags:** post-processing\
**Created:** [January 25, 2026, 3:11pm UTC](https://discourse.threejs.org/t/outlinepass-is-not-displaying-correctly-and-keeps-flickering/89442 "2026-01-25T15:11:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![qmz13579](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/qmz13579/32/43618_2.png) [@qmz13579](https://discourse.threejs.org/u/qmz13579)\
**Post date:** [January 25, 2026, 3:11pm UTC](https://discourse.threejs.org/t/outlinepass-is-not-displaying-correctly-and-keeps-flickering/89442/1 "2026-01-25T15:11:36Z")

</div>

**The OutlinePass issue remains unresolved. The screen keeps flickering when a model is selected, and it even flickers continuously when the mouse cursor is stationary. I can’t figure out the cause. Any expert advice would be greatly appreciated. Thank you.**

```javascript
engine.composer = new EffectComposer(engine.renderer);
const renderPass = new RenderPass(engine.scene, engine.camera);
engine.passArr?.push(renderPass);
const outlinePass = new OutlinePass(new THREE.Vector2(engine.viewer.width, engine.viewer.height), engine.scene, engine.camera);
outlinePass.visibleEdgeColor = new THREE.Color(0x00FFFF);
outlinePass.hiddenEdgeColor = new THREE.Color(0x0000FF);
outlinePass.edgeThickness = 1.0;
outlinePass.edgeStrength = 3.0;
outlinePass.edgeGlow = 0.0;
outlinePass.pulsePeriod = 0.0;
outlinePass.usePatternTexture = false;
engine.passArr?.push(outlinePass);
const outputPass = new OutputPass();
engine.passArr?.push(outputPass);
const effectFXAA = new ShaderPass(FXAAShader);
effectFXAA.uniforms['resolution'].value.set(1 / engine.viewer.width, 1 / engine.viewer.height);
engine.passArr?.push(effectFXAA);
engine.passArr?.forEach(pass => {
    engine.composer?.addPass(pass);
});
engine.viewer.addEventListener("update", () => engine.composer?.render());
engine.viewer.addEventListener("resize", (args: any) => {
    engine.composer?.setSize(args.size.width, args.size.height);
    effectFXAA.uniforms['resolution'].value.set(1 / args.size.width, 1 / args.size.height);
});

```

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/8/3/837349eddf19c488f767c569e6730cc13b636c03.jpeg)

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/d/0/d05c57c618b715f71e4258d155160cb74fa5c331.jpeg)

---

<div class="post-metadata">

**Author:** ![qmz13579](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/qmz13579/32/43618_2.png) [@qmz13579](https://discourse.threejs.org/u/qmz13579)\
**Post date:** [January 25, 2026, 3:17pm UTC](https://discourse.threejs.org/t/outlinepass-is-not-displaying-correctly-and-keeps-flickering/89442/2 "2026-01-25T15:17:13Z")

</div>

outlinePass.usePatternTexture = true;
