Tachyon (current)  Current Main Branch
Functions
texture.h File Reference

Go to the source code of this file.

Functions

void InitTextures (void)
 
color solid_background_texture (ray *ry)
 
color sky_sphere_background_texture (ray *ry)
 
color sky_plane_background_texture (ray *ry)
 
color constant_texture (const vector *, const texture *, const ray *)
 
color image_cyl_texture (const vector *, const texture *, const ray *)
 
color image_sphere_texture (const vector *, const texture *, const ray *)
 
color image_plane_texture (const vector *, const texture *, const ray *)
 
color image_volume_texture (const vector *, const texture *, const ray *)
 
color checker_texture (const vector *, const texture *, const ray *)
 
color cyl_checker_texture (const vector *, const texture *, const ray *)
 
color grit_texture (const vector *, const texture *, const ray *)
 
color wood_texture (const vector *, const texture *, const ray *)
 
color marble_texture (const vector *, const texture *, const ray *)
 
color gnoise_texture (const vector *, const texture *, const ray *)
 
int Noise (flt, flt, flt)
 
void FreeTextures (void)
 
texture * new_texture (void)
 
texture * new_standard_texture (void)
 
texture * new_vcstri_texture (void)
 
void free_standard_texture (void *voidtex)
 

Function Documentation

◆ checker_texture()

color checker_texture ( const vector *  ,
const texture *  ,
const ray *   
)

Definition at line 307 of file texture.c.

References FABS.

Referenced by apitextotex().

◆ constant_texture()

color constant_texture ( const vector *  ,
const texture *  ,
const ray *   
)

Definition at line 149 of file texture.c.

Referenced by apitextotex(), and newscalarvol().

◆ cyl_checker_texture()

color cyl_checker_texture ( const vector *  ,
const texture *  ,
const ray *   
)

Definition at line 337 of file texture.c.

References FABS, and xyztocyl().

Referenced by apitextotex().

◆ free_standard_texture()

void free_standard_texture ( void *  voidtex)

◆ FreeTextures()

void FreeTextures ( void  )

Definition at line 540 of file texture.c.

References FreeImages().

Referenced by rt_deletescene(), and rt_finalize().

◆ gnoise_texture()

color gnoise_texture ( const vector *  ,
const texture *  ,
const ray *   
)

Definition at line 516 of file texture.c.

References Noise().

Referenced by apitextotex().

◆ grit_texture()

color grit_texture ( const vector *  ,
const texture *  ,
const ray *   
)

Definition at line 291 of file texture.c.

Referenced by apitextotex().

◆ image_cyl_texture()

color image_cyl_texture ( const vector *  ,
const texture *  ,
const ray *   
)

Definition at line 155 of file texture.c.

References FABS, MIPMap(), SQRT, and xyztocyl().

Referenced by apitextotex(), and free_standard_texture().

◆ image_plane_texture()

color image_plane_texture ( const vector *  ,
const texture *  ,
const ray *   
)

Definition at line 219 of file texture.c.

References FABS, MIPMap(), and VDOT.

Referenced by apitextotex(), and free_standard_texture().

◆ image_sphere_texture()

color image_sphere_texture ( const vector *  ,
const texture *  ,
const ray *   
)

Definition at line 187 of file texture.c.

References FABS, MIPMap(), SQRT, and xyztospr().

Referenced by apitextotex(), and free_standard_texture().

◆ image_volume_texture()

color image_volume_texture ( const vector *  ,
const texture *  ,
const ray *   
)

Definition at line 252 of file texture.c.

References FABS, VDOT, and VolMIPMap().

Referenced by apitextotex(), and free_standard_texture().

◆ InitTextures()

void InitTextures ( void  )

◆ marble_texture()

color marble_texture ( const vector *  ,
const texture *  ,
const ray *   
)

Definition at line 481 of file texture.c.

References COS, FABS, Noise(), and SIN.

Referenced by apitextotex().

◆ new_standard_texture()

texture* new_standard_texture ( void  )

Definition at line 45 of file texture.c.

References standard_methods.

Referenced by rt_texture(), and rt_texture_copy_standard().

◆ new_texture()

texture* new_texture ( void  )

Definition at line 38 of file texture.c.

References normal_methods.

◆ new_vcstri_texture()

texture* new_vcstri_texture ( void  )

Definition at line 52 of file texture.c.

References vcstri_methods.

Referenced by rt_texture_copy_vcstri().

◆ Noise()

int Noise ( flt  ,
flt  ,
flt   
)

Definition at line 432 of file texture.c.

References FABS, NMAX, and NoiseMatrix.

Referenced by gnoise_texture(), and marble_texture().

◆ sky_plane_background_texture()

color sky_plane_background_texture ( ray *  ry)

Definition at line 116 of file texture.c.

References rt_rand(), RT_RAND_MAX_INV, tea4(), and VDot().

Referenced by rt_background_mode().

◆ sky_sphere_background_texture()

color sky_sphere_background_texture ( ray *  ry)

Definition at line 83 of file texture.c.

References rt_rand(), RT_RAND_MAX_INV, tea4(), and VDot().

Referenced by rt_background_mode().

◆ solid_background_texture()

color solid_background_texture ( ray *  ry)

Definition at line 77 of file texture.c.

Referenced by rt_background_mode().

◆ wood_texture()

color wood_texture ( const vector *  ,
const texture *  ,
const ray *   
)

Definition at line 370 of file texture.c.

References SIN.

Referenced by apitextotex().