How to prevent decal warping, when applying decals from certain angles

Good morning babylon-gang,

Imagine you apply a decal from this angle, at the top of the sphere, you can see it cuts off a bit.

You can see when you look from the top, there is some warping, where the projection is cut off.

What are some reasonable solutions for this? and is it possible to have the decal projection showing a preview before its applied, so maybe we can detect an invalid decal position?

Thanks!

PG:

You would need to project along the normal of the picked point, instead of the forward direction of the camera:

3 Likes