How to force meshes using scene default material?

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?

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

Exactly what I want, thanks a lot !:nerd_face: