# subMeshes, MultiMaterial, and DOUBLESIDE rendering

**URL:** <https://forum.babylonjs.com/t/submeshes-multimaterial-and-doubleside-rendering/7259>\
**Category:** Bugs\
**Created:** [November 27, 2019, 9:00pm UTC](https://forum.babylonjs.com/t/submeshes-multimaterial-and-doubleside-rendering/7259 "2019-11-27T21:00:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![levere](https://avatars.discourse-cdn.com/v4/letter/l/e36b37/32.png) [@levere](https://forum.babylonjs.com/u/levere)\
**Post date:** [November 27, 2019, 9:00pm UTC](https://forum.babylonjs.com/t/submeshes-multimaterial-and-doubleside-rendering/7259/1 "2019-11-27T21:00:03Z")

</div>

I’m not seeing the back faces when using double-side rendering on sub-meshes.

[https://www.babylonjs-playground.com/#2Q4S2S#194](https://www.babylonjs-playground.com/#2Q4S2S#194)

Am I missing any setup required to make this work properly or is this a bug?

---

<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:** [November 27, 2019, 9:38pm UTC](https://forum.babylonjs.com/t/submeshes-multimaterial-and-doubleside-rendering/7259/2 "2019-11-27T21:38:37Z")

</div>

Setting `.backFaceCulling = false` on the materials does work.

It seems the `BABYLON.Mesh.DOUBLESIDE` parameter is used only when no material is applied on the sphere.

---

<div class="post-metadata">

**Author:** ![jerome](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jerome/32/22_2.png) [@jerome](https://forum.babylonjs.com/u/jerome)\
**Post date:** [November 28, 2019, 8:17am UTC](https://forum.babylonjs.com/t/submeshes-multimaterial-and-doubleside-rendering/7259/3 "2019-11-28T08:17:35Z")

</div>

`BABYLON.Mesh.DOUBLESIDE` is a parameter used _at construction time_ on some provided BJS meshes. It adds twice more indices and vertices (so facets or triangles) in the mesh geometry, whatever the material used then.

`backFaceCulling = false` is a material property. It forces a triangle to be rendered even if the camera is facing its back face, regarding its vertices drawing rotation order (clockwise or not).

Let’s try your example, with no multimaterials : [https://www.babylonjs-playground.com/#2Q4S2S#196](https://www.babylonjs-playground.com/#2Q4S2S#196)

Now, the same with multimaterials AND double sided sphere (note that I changed the start/count of indices in the submeshes) : [https://www.babylonjs-playground.com/#2Q4S2S#197](https://www.babylonjs-playground.com/#2Q4S2S#197)

The same, with no DOUBLESIDE, but with backFaceCulling disabled : [https://www.babylonjs-playground.com/#2Q4S2S#198](https://www.babylonjs-playground.com/#2Q4S2S#198)

Depending on your need, it may be simpler to use the material backFaceCulling property then.
