# How can I get a working postprocess shader created in NME without promoting it's nodes to target type Fragment?

**URL:** <https://forum.babylonjs.com/t/how-can-i-get-a-working-postprocess-shader-created-in-nme-without-promoting-its-nodes-to-target-type-fragment/23883>\
**Category:** Questions\
**Created:** [September 16, 2021, 5:29pm UTC](https://forum.babylonjs.com/t/how-can-i-get-a-working-postprocess-shader-created-in-nme-without-promoting-its-nodes-to-target-type-fragment/23883 "2021-09-16T17:29:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![roland](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/roland/32/38940_2.png) [@roland](https://forum.babylonjs.com/u/roland)\
**Post date:** [September 16, 2021, 5:29pm UTC](https://forum.babylonjs.com/t/how-can-i-get-a-working-postprocess-shader-created-in-nme-without-promoting-its-nodes-to-target-type-fragment/23883/1 "2021-09-16T17:29:39Z")

</div>

Hi!  
I’m trying to display only the bright spots on the scene using the pipeline and custom postprocesses. I have a simple setup here with just one postprocess:

> **[Babylon.js Playground](https://playground.babylonjs.com/#M7U9GS%2318)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

It is working only when I set this node’s Target to Fragment. It is not working for Vertex. How can I set it up to work with target Vertex?

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/5/2/524f18b8ddbc55bb2d84d8939a8ca18fa9b1486d.png)

FYI:

> [@NME - node promoted to incorrect target](https://forum.babylonjs.com/t/nme-node-promoted-to-incorrect-target/23881):
>
> Hello! Why is it promoting? An if so, it has promoted it to a wrong target. It ends in a FragmentOutput so should be promoted to Target type Fragment. I didn’t know why was I getting always black output smiley I had to switch explicitly this node to Target Fragment. Thank you!

Thank you!

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [September 16, 2021, 6:16pm UTC](https://forum.babylonjs.com/t/how-can-i-get-a-working-postprocess-shader-created-in-nme-without-promoting-its-nodes-to-target-type-fragment/23883/2 "2021-09-16T18:16:54Z")

</div>

You can’t make it work by having the code in the vertex shader, given what you want to do you really need to lookup the texture for each pixel fragment, so it must run in the fragment shader.

---

<div class="post-metadata">

**Author:** ![roland](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/roland/32/38940_2.png) [@roland](https://forum.babylonjs.com/u/roland)\
**Post date:** [September 16, 2021, 6:39pm UTC](https://forum.babylonjs.com/t/how-can-i-get-a-working-postprocess-shader-created-in-nme-without-promoting-its-nodes-to-target-type-fragment/23883/3 "2021-09-16T18:39:56Z")

</div>

I didn’t get what @Deltakosh was referring to when talking about texels. A quick Google search and now it’s all clear!

Thanks a lot for helping me guys!
