I try to make or find a shader that allow me to place and scale a texture on a mesh like a sticker, I mean: a texture that is not “repeated”. Changing his position on the mesh and his scale with 4 variables. But I have no idea to how to do this.
Thanks.
No, it’s easy way. Another ways is:
Create another one object with suitable uv and draw it with shader with some Offset.
Create shader and pass into it some matrix or vector for texture projection purposes.
I did something like this but i use component instead of shader. My script grabs the mesh, pick the triangles in area, calculate the uv, and render it on the surface of the original object. It’s good because my script can cache the generated new mesh, and use any shader for the sticker. As what they say, projecter is the most easiest way to do the sticker effect.
SunnyChow> You’re method interests me because I guess it allows me to add any number of textures and apply shader by texture. What do you mean by “cache the mesh”? I think I have to learn really much more about “graphic things” in unity because I understand nothing about to “pick the triangles in area”.
mouurusai> “Create another one object with suitable uv and draw it with shader with some Offset.”
This method seem to be very suitable to my context, now I have to learn to work with UV.