Lines Matching refs:y

70     rh.z = hit->y - tex->ctr.y;  in image_cyl_texture()
71 rh.y = hit->z - tex->ctr.z; in image_cyl_texture()
81 v = v * tex->scale.y; in image_cyl_texture()
82 v = v + tex->rot.y; in image_cyl_texture()
96 rh.y = hit->y - tex->ctr.y; in image_sphere_texture()
107 v = v * tex->scale.y; in image_sphere_texture()
108 v = v + tex->rot.y; in image_sphere_texture()
122 pnt.y = hit->y - tex->ctr.y; in image_plane_texture()
139 v = v * tex->scale.y; in image_plane_texture()
140 v = v + tex->rot.y; in image_plane_texture()
164 long x, y, z; in checker_texture() local
171 yh = hit->y - tex->ctr.y; in checker_texture()
172 y = (long)((fabs(yh) * 3) + 0.5); in checker_texture()
173 y = y % 2; in checker_texture()
178 if (((x + y + z) % 2) == 1) { in checker_texture()
193 long x, y; in cyl_checker_texture() local
199 rh.y = hit->y - tex->ctr.y; in cyl_checker_texture()
206 y = (long)(fabs(v) * 10.0); in cyl_checker_texture()
207 y = y % 2; in cyl_checker_texture()
209 if (((x + y) % 2) == 1) { in cyl_checker_texture()
227 flt x, y, z; in wood_texture() local
230 y = (hit->y - tex->ctr.y) * 1000; in wood_texture()
239 radius = radius + 3.0 * sin(20 * angle + y / 150.0); in wood_texture()
259 byte_t x, y, z, i, j, k; in InitNoise() local
262 for (y = 0; y < NMAX; y++) { in InitNoise()
264 NoiseMatrix[x][y][z] = rand() % 12000; in InitNoise()
271 if (y == NMAX - 1) in InitNoise()
274 j = y; in InitNoise()
281 NoiseMatrix[x][y][z] = NoiseMatrix[i][j][k]; in InitNoise()
287 int Noise(flt x, flt y, flt z) { in Noise() argument
298 y = fabs(y); in Noise()
302 iy = ((int)y) % (NMAX - 1); in Noise()
306 oy = (y - ((int)y)); in Noise()
338 flt x, y, z; in marble_texture() local
342 y = hit->y; in marble_texture()
347 d = x + 0.0006 * Noise(x, (y * 1.0), (z * 1.0)); in marble_texture()
372 f = Noise((hit->x - tex->ctr.x), (hit->y - tex->ctr.y), (hit->z - tex->ctr.z)); in gnoise_texture()