Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | cre |
Is there any method to get the texture coordinates from a 3D raycast? I would create a plane (MeshInstance) which would has a snow/mud type of effect, so when something falls to the plane like a ball or any other object, it would push the texture. The plane and shader have been already created, it is working with a heightmap as well, so I tried to create a viewport and draw to the heightmap inside with this viewport, but the projection didn’t work completely.
I would find a solution such as RaycastHit.textureCoord in Unity.