double def of colo pixel func
This commit is contained in:
parent
76d02c869f
commit
7e155d1166
@ -97,12 +97,3 @@ int get_gradient_color(double z, int z_max)
|
|||||||
return (colors[(int)(z * 12 / z_max)]);
|
return (colors[(int)(z * 12 / z_max)]);
|
||||||
}
|
}
|
||||||
|
|
||||||
int get_pixel_color(t_fdf *fdf, t_point_3d point)
|
|
||||||
{
|
|
||||||
if (fdf->colormode == COLOR_MODE_Z)
|
|
||||||
return (get_z_color(point.z, fdf->map->z_max));
|
|
||||||
else if (fdf->colormode == COLOR_MODE_GRADIENT)
|
|
||||||
return (get_gradient_color(point.z, fdf->map->z_max));
|
|
||||||
else
|
|
||||||
return (point.color);
|
|
||||||
}
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user