I want to change the texture of a mesh of triangles. When the play click on a triangle it changes texture. To do this, I use RaycatHit.Triangle and texture Atlas.
The raycatHit.Triangle gives me the local coordinates of the three vertices (correct me if I say stupid because I start :)). My idea is to find the coordinates of the triangle Uvs, or rather three peaks, and change to display the new texture triangle ‘raycaté’. I can not find the coordinates from Uvs Raycast!
thank you for your answer
the ‘raycastHit.Coord’ returns the coordinates at the point of impact.
I want to have the UV coordinates of the three vertices of the triangle hit by the ray.