summaryrefslogtreecommitdiff
path: root/test/raytracer/surface.h
blob: ac128b27720326bfea029a9b1b4ce85d6fe289f3 (plain)
1
2
3
4
5
6
7
/* Return the texture coordinates for the given point on the given
   object.  Point in object coords. */

void surface_coords(struct object * obj, struct point * p,
                    /*out*/ int * face,
                    /*out*/ flt * u,
                    /*out*/ flt * v);