Tachyon (current)
Current Main Branch
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "tachyon.h"
#include "intersect.h"
#include "macros.h"
Go to the source code of this file.
Macros | |
#define | TACHYON_INTERNAL 1 |
Functions | |
unsigned int | new_objectid (scenedef *scene) |
unsigned int | max_objectid (scenedef *scene) |
void | free_objects (object *start) |
void | intersect_objects (ray *ry) |
void | add_regular_intersection (flt t, const object *obj, ray *ry) |
void | add_clipped_intersection (flt t, const object *obj, ray *ry) |
int | closest_intersection (flt *t, object const **obj, ray *ry) |
void | add_shadow_intersection (flt t, const object *obj, ray *ry) |
void | add_clipped_shadow_intersection (flt t, const object *obj, ray *ry) |
int | shadow_intersection (ray *ry) |
#define TACHYON_INTERNAL 1 |
Definition at line 16 of file intersect.c.
void add_clipped_intersection | ( | flt | t, |
const object * | obj, | ||
ray * | ry | ||
) |
void add_clipped_shadow_intersection | ( | flt | t, |
const object * | obj, | ||
ray * | ry | ||
) |
Definition at line 155 of file intersect.c.
References RAYPNT.
Referenced by full_shader(), and shade_ambient_occlusion().
void add_regular_intersection | ( | flt | t, |
const object * | obj, | ||
ray * | ry | ||
) |
Definition at line 77 of file intersect.c.
Referenced by camray_init().
void add_shadow_intersection | ( | flt | t, |
const object * | obj, | ||
ray * | ry | ||
) |
Definition at line 131 of file intersect.c.
Referenced by full_shader(), and shade_ambient_occlusion().
int closest_intersection | ( | flt * | t, |
object const ** | obj, | ||
ray * | ry | ||
) |
Definition at line 119 of file intersect.c.
Referenced by full_shader(), low_shader(), lowest_shader(), and medium_shader().
void free_objects | ( | object * | start | ) |
Definition at line 34 of file intersect.c.
Referenced by grid_free(), and rt_deletescene().
void intersect_objects | ( | ray * | ry | ) |
Definition at line 47 of file intersect.c.
References reset_intersection.
Referenced by cam_equirectangular_ray(), cam_equirectangular_stereo_ray(), cam_fisheye_ray(), cam_orthographic_dof_ray(), cam_orthographic_ray(), cam_perspective_dof_ray(), cam_perspective_ray(), full_shader(), shade_ambient_occlusion(), shade_reflection(), shade_transmission(), and trace().
unsigned int max_objectid | ( | scenedef * | scene | ) |
Definition at line 30 of file intersect.c.
unsigned int new_objectid | ( | scenedef * | scene | ) |
Definition at line 26 of file intersect.c.
Referenced by add_bounded_object(), add_unbounded_object(), and newgrid().
int shadow_intersection | ( | ray * | ry | ) |
Definition at line 195 of file intersect.c.
Referenced by full_shader(), and shade_ambient_occlusion().