# Make the texture look blended

**URL:** <https://forum.babylonjs.com/t/make-the-texture-look-blended/16989>\
**Category:** Questions\
**Created:** [December 29, 2020, 6:42am UTC](https://forum.babylonjs.com/t/make-the-texture-look-blended/16989 "2020-12-29T06:42:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Muhamad\_Rifky](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/muhamad_rifky/32/7838_2.png) [@Muhamad\_Rifky](https://forum.babylonjs.com/u/Muhamad_Rifky)\
**Post date:** [December 29, 2020, 6:42am UTC](https://forum.babylonjs.com/t/make-the-texture-look-blended/16989/1 "2020-12-29T06:42:39Z")

</div>

Hi all 🙂

i tried to merge two mesh and then i apply a texture to that merged mesh, but the texture doesn’t blend like this:

![merged-texture](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/6/68a7dcdea6a9a2084b9e84462e85c9897a421931.png)

I want to make the texture look blended, how to do it?

this is my code :

> **[Babylon.js Playground](https://playground.babylonjs.com/#INZ0Z0%23103)**

thanks all 🙂

---

<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:** [December 29, 2020, 10:27am UTC](https://forum.babylonjs.com/t/make-the-texture-look-blended/16989/2 "2020-12-29T10:27:22Z")

</div>

You should use a [CSG union operation](https://doc.babylonjs.com/divingDeeper/mesh/mergeMeshes#merging-meshes-with-constructive-solid-geometry) to merge the meshes.

Your problem here is z-fighting because some faces of one cube is directly over some faces of the other.

---

<div class="post-metadata">

**Author:** ![Muhamad\_Rifky](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/muhamad_rifky/32/7838_2.png) [@Muhamad\_Rifky](https://forum.babylonjs.com/u/Muhamad_Rifky)\
**Post date:** [December 30, 2020, 4:31am UTC](https://forum.babylonjs.com/t/make-the-texture-look-blended/16989/3 "2020-12-30T04:31:40Z")

</div>

Hi Evgeni\_Popov,

Thanks for the answer, it worked 🙂
