Lines Matching refs:v
67 flt u, v; in image_cyl_texture() local
73 xyztocyl(rh, 1.0, &u, &v); in image_cyl_texture()
81 v = v * tex->scale.y; in image_cyl_texture()
82 v = v + tex->rot.y; in image_cyl_texture()
83 v = fmod(v, 1.0); in image_cyl_texture()
84 if (v < 0.0) in image_cyl_texture()
85 v += 1.0; in image_cyl_texture()
87 return ImageMap((rawimage *)tex->img, u, v); in image_cyl_texture()
93 flt u, v; in image_sphere_texture() local
99 xyztospr(rh, &u, &v); in image_sphere_texture()
107 v = v * tex->scale.y; in image_sphere_texture()
108 v = v + tex->rot.y; in image_sphere_texture()
109 v = fmod(v, 1.0); in image_sphere_texture()
110 if (v < 0.0) in image_sphere_texture()
111 v += 1.0; in image_sphere_texture()
113 return ImageMap((rawimage *)tex->img, u, v); in image_sphere_texture()
119 flt u, v; in image_plane_texture() local
129 VDOT(v, tex->vaxs, pnt); in image_plane_texture()
139 v = v * tex->scale.y; in image_plane_texture()
140 v = v + tex->rot.y; in image_plane_texture()
141 v = fmod(v, 1.0); in image_plane_texture()
142 if (v < 0.0) in image_plane_texture()
143 v += 1.0; in image_plane_texture()
145 return ImageMap((rawimage *)tex->img, u, v); in image_plane_texture()
195 flt u, v; in cyl_checker_texture() local
202 xyztocyl(rh, 1.0, &u, &v); in cyl_checker_texture()
206 y = (long)(fabs(v) * 10.0); in cyl_checker_texture()