How do I make a decal cut off at the corner or wrap around it?

Just like the title.
How do I make a decal cut off at the corner or wrap around it?

I am using a Raycasting system that will place the decal at the end of a cast.
The problem is that there is no way to know that the placed decal is going off the edge of the part or corner and how to cut it off when the decal reached the edge or wrap it around.

I haven’t tried any solution because I simply do not know any solution for this, but
I’ve found a plugin called “Decal Surface Displacement” that share similarities with what I wanted but I still do not know how to implement it or get it to work using a script.

Any help would be greatly appreciated!

1 Like

Hello! Creator of the plugin you mentioned here. I replied to an earlier comment there sharing the UpdatePlane function which is responsible for shaping the planes. You can use that as reference if you want.

So you are referring to this reply?

I still don’t really know how to properly use that function
what is the word ‘plane’ referring to exactly?

function UpdatePlane(Plane)

Plane is the object you deform onto a surface. If you don’t know how to use the function I recommend learning the basics of scripting, functions and arguments.

1 Like