I am trying to apply a heightmap on a 3D object. I can’t figure out how to do it.
I have found this example on how to do a 2D terrain, but have no idea how to modify it to a 3D.
My end goal is to make a cube with a bulge moving on the surface of the cube following a cursor, but for now I need help with at least applying of the heightmap.
One options would be to use displacement, which is in the works, but not finalized yet:
I don’t think there is out of the box solution for what you need … you could create a custom shader to implement displacement, or do some form of displacement on the CPU and construct a mesh from this as the other example I linked.