Tachyon (current)  Current Main Branch
Macros | Functions
intersect.h File Reference

Go to the source code of this file.

Macros

#define reset_intersection(ry)
 

Functions

unsigned int new_objectid (scenedef *)
 
void free_objects (object *)
 
void intersect_objects (ray *)
 
void add_clipped_intersection (flt, const object *, ray *)
 
void add_regular_intersection (flt, const object *, ray *)
 
int closest_intersection (flt *, object const **, ray *)
 
void add_shadow_intersection (flt, const object *, ray *)
 
void add_clipped_shadow_intersection (flt, const object *, ray *)
 
int shadow_intersection (ray *)
 

Macro Definition Documentation

◆ reset_intersection

#define reset_intersection (   ry)
Value:
(ry)->intstruct.num = 0; \
(ry)->intstruct.shadowfilter = 1.0;

Definition at line 24 of file intersect.h.

Referenced by intersect_objects().

Function Documentation

◆ add_clipped_intersection()

void add_clipped_intersection ( flt  ,
const object *  ,
ray *   
)

Definition at line 90 of file intersect.c.

References RAYPNT.

Referenced by camray_init().

◆ add_clipped_shadow_intersection()

void add_clipped_shadow_intersection ( flt  ,
const object *  ,
ray *   
)

Definition at line 155 of file intersect.c.

References RAYPNT.

Referenced by full_shader(), and shade_ambient_occlusion().

◆ add_regular_intersection()

void add_regular_intersection ( flt  ,
const object *  ,
ray *   
)

Definition at line 77 of file intersect.c.

Referenced by camray_init().

◆ add_shadow_intersection()

void add_shadow_intersection ( flt  ,
const object *  ,
ray *   
)

Definition at line 131 of file intersect.c.

Referenced by full_shader(), and shade_ambient_occlusion().

◆ closest_intersection()

int closest_intersection ( flt ,
object const **  ,
ray *   
)

Definition at line 119 of file intersect.c.

Referenced by full_shader(), low_shader(), lowest_shader(), and medium_shader().

◆ free_objects()

void free_objects ( object *  )

Definition at line 34 of file intersect.c.

Referenced by grid_free(), and rt_deletescene().

◆ intersect_objects()

void intersect_objects ( ray *  )

◆ new_objectid()

unsigned int new_objectid ( scenedef *  )

Definition at line 26 of file intersect.c.

Referenced by add_bounded_object(), add_unbounded_object(), and newgrid().

◆ shadow_intersection()

int shadow_intersection ( ray *  )

Definition at line 195 of file intersect.c.

Referenced by full_shader(), and shade_ambient_occlusion().