I am trying to move the decal by manipulating the camera as it fits my use case well. But i’m running into this problem of stretched decals at some places. Here is the Playground link: Babylon.js Playground
Any Clues on how to fix this? Or maybe some other kind of manipulation that doesn’t involve mouse or keyboard events to move the decal (something similar to ray as used in the playground)
I don’t think there’s a solution to this problem, it’s an artifact you can get for some specific positions of the decal. You can either try to decrease a little bit the size of the decal, or add some empty pixels around the decal texture.
You could also try to use decal texture instead of decal mesh, but I’m not sure if it will fix the problem…
I cannot use decal textures because the mesh does not necessarily have a clean UV. So i need to find a way to calculate a new set of UV’s programatically for the mesh and then use the decal texture. Or i could have my own implementation of the mesh decals but i read that it may not work in babylon in this article.