Lines Matching refs:hit
60 color standard_texture(vector *hit, texture *tex, ray *ry) { in standard_texture() argument
65 color image_cyl_texture(vector *hit, texture *tex, ray *ry) { in image_cyl_texture() argument
69 rh.x = hit->x - tex->ctr.x; in image_cyl_texture()
70 rh.z = hit->y - tex->ctr.y; in image_cyl_texture()
71 rh.y = hit->z - tex->ctr.z; in image_cyl_texture()
91 color image_sphere_texture(vector *hit, texture *tex, ray *ry) { in image_sphere_texture() argument
95 rh.x = hit->x - tex->ctr.x; in image_sphere_texture()
96 rh.y = hit->y - tex->ctr.y; in image_sphere_texture()
97 rh.z = hit->z - tex->ctr.z; in image_sphere_texture()
117 color image_plane_texture(vector *hit, texture *tex, ray *ry) { in image_plane_texture() argument
121 pnt.x = hit->x - tex->ctr.x; in image_plane_texture()
122 pnt.y = hit->y - tex->ctr.y; in image_plane_texture()
123 pnt.z = hit->z - tex->ctr.z; in image_plane_texture()
148 color grit_texture(vector *hit, texture *tex, ray *ry) { in grit_texture() argument
163 color checker_texture(vector *hit, texture *tex, ray *ry) { in checker_texture() argument
168 xh = hit->x - tex->ctr.x; in checker_texture()
171 yh = hit->y - tex->ctr.y; in checker_texture()
174 zh = hit->z - tex->ctr.z; in checker_texture()
192 color cyl_checker_texture(vector *hit, texture *tex, ray *ry) { in cyl_checker_texture() argument
198 rh.x = hit->x - tex->ctr.x; in cyl_checker_texture()
199 rh.y = hit->y - tex->ctr.y; in cyl_checker_texture()
200 rh.z = hit->z - tex->ctr.z; in cyl_checker_texture()
223 color wood_texture(vector *hit, texture *tex, ray *ry) { in wood_texture() argument
229 x = (hit->x - tex->ctr.x) * 1000; in wood_texture()
230 y = (hit->y - tex->ctr.y) * 1000; in wood_texture()
231 z = (hit->z - tex->ctr.z) * 1000; in wood_texture()
336 color marble_texture(vector *hit, texture *tex, ray *ry) { in marble_texture() argument
341 x = hit->x; in marble_texture()
342 y = hit->y; in marble_texture()
343 z = hit->z; in marble_texture()
368 color gnoise_texture(vector *hit, texture *tex, ray *ry) { in gnoise_texture() argument
372 f = Noise((hit->x - tex->ctr.x), (hit->y - tex->ctr.y), (hit->z - tex->ctr.z)); in gnoise_texture()