Hi All, I want to position a decal in UV space. The demos use interactive raycasting to find the hitpoint and position the decal that way.
That wont work for me as id like to position the decal precisely at a pre-defined position on the surface, ideally a point on the surface corresponding to some UV coordinates. So there are two parts to this.
UV space positioning. The requirement here is that given a surface, if I want to position that decal on the “center” of the surface in uv space, that would be UV: 0.5,0.5 (assuming zero to 1 uv space). Currently you can only position the decal in a world x,y,z space. Do I need to transform the UV coordinate point to a world point. First . If so how would I go about this.
Secondly, I want to restrict the decal from only affecting a specific mesh, not all meshes. How do I mask only the mesh I want to position my decal so it only affects that mesh. I feel like there is some renderGroup trick here that could be used but cant quite grasp it.
Would appreciate any advice,