Decal material is flickering

Please check the below playground, when the material overlap. while rotating material is flickering.

https://www.babylonjs-playground.com/#DMP6ZD#5

any solution for this.

I don’t see it flickering :frowning: can you do a screen video capture?

You can try to increase the zOffset value each time you create a new decal:

https://www.babylonjs-playground.com/#DMP6ZD#6

1 Like

This is working but its removing my shader material from textures

https://www.babylonjs-playground.com/#DMP6ZD#7

another thing is noticed that, every time when i change new decal texture and apply, the mesh position sifting

clone is not implemented in CustomMaterial, you will need to create a new material each time:

https://www.babylonjs-playground.com/#DMP6ZD#8

1 Like