1 /* 2 * texture.h This file contains all of the includes and defines for the texture 3 * mapping part of the shader. 4 * 5 * $Id: texture.h,v 1.14 2007/02/03 23:00:06 johns Exp $ 6 */ 7 8 void InitTextures(void); 9 10 /* background texturing routines */ 11 color solid_background_texture(const ray *ry); 12 color sky_sphere_background_texture(const ray *ry); 13 14 /* object texturing routines */ 15 color constant_texture(const vector *, const texture *, const ray *); 16 color image_cyl_texture(const vector *, const texture *, const ray *); 17 color image_sphere_texture(const vector *, const texture *, const ray *); 18 color image_plane_texture(const vector *, const texture *, const ray *); 19 color image_volume_texture(const vector *, const texture *, const ray *); 20 color checker_texture(const vector *, const texture *, const ray *); 21 color cyl_checker_texture(const vector *, const texture *, const ray *); 22 color grit_texture(const vector *, const texture *, const ray *); 23 color wood_texture(const vector *, const texture *, const ray *); 24 color marble_texture(const vector *, const texture *, const ray *); 25 color gnoise_texture(const vector *, const texture *, const ray *); 26 int Noise(flt, flt, flt); 27 void InitTextures(void); 28 void FreeTextures(void); 29 30 texture * new_texture(void); 31 texture * new_standard_texture(void); 32 texture * new_vcstri_texture(void); 33 void free_standard_texture(void * voidtex); 34 35