Lines Matching refs:z
70 rh.z = hit->y - tex->ctr.y; in image_cyl_texture()
71 rh.y = hit->z - tex->ctr.z; in image_cyl_texture()
97 rh.z = hit->z - tex->ctr.z; in image_sphere_texture()
123 pnt.z = hit->z - tex->ctr.z; in image_plane_texture()
164 long x, y, z; in checker_texture() local
174 zh = hit->z - tex->ctr.z; in checker_texture()
175 z = (long)((fabs(zh) * 3) + 0.5); in checker_texture()
176 z = z % 2; in checker_texture()
178 if (((x + y + z) % 2) == 1) { in checker_texture()
200 rh.z = hit->z - tex->ctr.z; in cyl_checker_texture()
227 flt x, y, z; in wood_texture() local
231 z = (hit->z - tex->ctr.z) * 1000; in wood_texture()
233 radius = sqrt(x * x + z * z); in wood_texture()
234 if (z == 0.0) in wood_texture()
237 angle = atan(x / z); in wood_texture()
259 byte_t x, y, z, i, j, k; in InitNoise() local
263 for (z = 0; z < NMAX; z++) { in InitNoise()
264 NoiseMatrix[x][y][z] = rand() % 12000; in InitNoise()
276 if (z == NMAX - 1) in InitNoise()
279 k = z; 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
299 z = fabs(z); in Noise()
303 iz = ((int)z) % (NMAX - 1); in Noise()
307 oz = (z - ((int)z)); in Noise()
338 flt x, y, z; in marble_texture() local
343 z = hit->z; 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()