# How to force meshes using scene default material?

**URL:** <https://forum.babylonjs.com/t/how-to-force-meshes-using-scene-default-material/62321>\
**Category:** Questions\
**Created:** [February 3, 2026, 7:58am UTC](https://forum.babylonjs.com/t/how-to-force-meshes-using-scene-default-material/62321 "2026-02-03T07:58:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RichardFly](https://avatars.discourse-cdn.com/v4/letter/r/8e8cbc/32.png) [@RichardFly](https://forum.babylonjs.com/u/RichardFly)\
**Post date:** [February 3, 2026, 7:58am UTC](https://forum.babylonjs.com/t/how-to-force-meshes-using-scene-default-material/62321/1 "2026-02-03T07:58:21Z")

</div>

I wanna add a doNotRenderMaterialCameraUniqueIds property to the AbstractMesh to flag which camera in the render loop should be excluded to render the mesh.material. It works when the mesh.material has no textures. But if the mesh.material using textures, when I make it force rendering the scene default material, the mesh would be a black one. So I wanna know if it’s a correct way or a better solution can be provided?

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/0/3/03c69dc8be339736d71fbee42e70be982f341aea.png)

---

<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:** [February 3, 2026, 10:10am UTC](https://forum.babylonjs.com/t/how-to-force-meshes-using-scene-default-material/62321/2 "2026-02-03T10:10:39Z")

</div>

The effect used by the default material is an effect generated without support for the diffuse texture, so if the old effect of your mesh uses a diffuse texture (or is different in any other way from the default material), you must clear the mesh draw cache:

[https://playground.babylonjs.com/#XMF4UU](https://playground.babylonjs.com/#XMF4UU)

---

<div class="post-metadata">

**Author:** ![RichardFly](https://avatars.discourse-cdn.com/v4/letter/r/8e8cbc/32.png) [@RichardFly](https://forum.babylonjs.com/u/RichardFly)\
**Post date:** [February 3, 2026, 10:17am UTC](https://forum.babylonjs.com/t/how-to-force-meshes-using-scene-default-material/62321/3 "2026-02-03T10:17:21Z")

</div>

Exactly what I want, thanks a lot !🤓
