Im trying to do more research on the HLSL but this is what I got so far, it doesnt work with the height map but it works with collision(kinda).