I'd recommend starting with javascript: https://thebookofshaders.com/ https://threejs.org/examples/#webgl_geometry_terrain_raycast
I'd recommend starting with javascript: https://thebookofshaders.com/ https://threejs.org/examples/#webgl_geometry_terrain_raycast