# Trying to re-create this in Node Material Editor

**URL:** <https://forum.babylonjs.com/t/trying-to-re-create-this-in-node-material-editor/10678>\
**Category:** Questions\
**Created:** [May 9, 2020, 5:05am UTC](https://forum.babylonjs.com/t/trying-to-re-create-this-in-node-material-editor/10678 "2020-05-09T05:05:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![xrachid](https://avatars.discourse-cdn.com/v4/letter/x/dfb087/32.png) [@xrachid](https://forum.babylonjs.com/u/xrachid)\
**Post date:** [May 9, 2020, 5:05am UTC](https://forum.babylonjs.com/t/trying-to-re-create-this-in-node-material-editor/10678/1 "2020-05-09T05:05:51Z")

</div>

I don’t know if front facing is doing what I expect?  
I am trying make it so it looks like fake liquid by cutting the mesh in half, have its back face showing, and color the backface a separate color.

basically Is there a way to just color the backface in the node material editor?

I am trying to re-create this [https://i.imgur.com/CTSwHHv.png](https://i.imgur.com/CTSwHHv.png)

[https://nme.babylonjs.com/#D7FLLA](https://nme.babylonjs.com/#D7FLLA)

---

<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:** [May 9, 2020, 10:06am UTC](https://forum.babylonjs.com/t/trying-to-re-create-this-in-node-material-editor/10678/2 "2020-05-09T10:06:33Z")

</div>

What you are doing is fine, the problem being that because you link the alpha input of the `FragmentOutput` block, the rendering system considers you want to display your object with transparency and so flag the object as “transparent”. It means it does not write to the depth buffer and because the faces are drawn in no particular order (in fact, they are drawn in their creation order), the display is all mixed up.

Instead, you should use the `Discard` block:

[https://nme.babylonjs.com/#D7FLLA#2](https://nme.babylonjs.com/#D7FLLA#2)

This way, the object is not considered as transparent and is rendered with the depth buffer on.

---

<div class="post-metadata">

**Author:** ![xrachid](https://avatars.discourse-cdn.com/v4/letter/x/dfb087/32.png) [@xrachid](https://forum.babylonjs.com/u/xrachid)\
**Post date:** [May 9, 2020, 3:05pm UTC](https://forum.babylonjs.com/t/trying-to-re-create-this-in-node-material-editor/10678/3 "2020-05-09T15:05:53Z")

</div>

thank you!

---

<div class="post-metadata">

**Author:** ![Panuchka](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/panuchka/32/12054_2.png) [@Panuchka](https://forum.babylonjs.com/u/Panuchka)\
**Post date:** [June 26, 2023, 3:18pm UTC](https://forum.babylonjs.com/t/trying-to-re-create-this-in-node-material-editor/10678/4 "2023-06-26T15:18:40Z")

</div>

Sorry for necrobumping the thread, but has there been some changes in nme/engine that prevent the backface from showing up? Trying to recreate this effect as well and at least the latest nme by @Evgeni_Popov shows like this to me:  
 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/3/e/3e9c5e58ec69e6cc95ee9f6568dc964c89b45ce9.png)  
Should there been green “top”?

---

<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:** [June 26, 2023, 8:58pm UTC](https://forum.babylonjs.com/t/trying-to-re-create-this-in-node-material-editor/10678/5 "2023-06-26T20:58:52Z")

</div>

You have to enable “Render without back face culling” in the NME (button in the bottom right of the preview window):

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/9/b/9b619e56a6654be11e521772753009151aa2c54d.png)
