Intersects a ray with a height function by ray-marching then bisecting. Works for baked meshes and procedural terrain alike (threejs-grass uses it for its terrain painter).
threejs-grass
Normalised ray direction.
March step in metres; smaller catches thinner ridges.
The hit point (a new Vector3), or null.
null
Intersects a ray with a height function by ray-marching then bisecting. Works for baked meshes and procedural terrain alike (
threejs-grassuses it for its terrain painter).