shaunlebron/blinky

[enhancement] simplify globe interface

shaunlebron opened this issue · 1 comments

The determination of texture coordinates can (and should) be done automatically once the appropriate plate is known. Thus, the ray_to_plate and plate_to_ray should be removed.

To determine the appropriate plate for a given ray, the function globe_plate(x,y,z) can be provided. If it is not provided by a globe script, the default functionality of choosing the plate closest to the ray will be used.

Got rid of maybe 300 lines of code that catered to different coordinate systems, including the lua glue code.