|
Tachyon (current)
Current Main Branch
|
#include "shade.h"Go to the source code of this file.
Data Structures | |
| struct | light_t |
| struct | point_light_t |
| struct | directional_light_t |
Typedefs | |
| typedef struct light_t | light |
| typedef struct point_light_t | point_light |
| typedef struct directional_light_t | directional_light |
Functions | |
| void | free_light_special (void *voidlight) |
| directional_light * | newdirectionallight (void *, vector) |
| point_light * | newpointlight (void *, vector, flt) |
| point_light * | newspotlight (void *tex, vector ctr, flt rad, vector dir, flt fallstart, flt fallend) |
| point_light * | newlight (void *, vector, flt) |
| void | light_set_attenuation (point_light *li, flt Kc, flt Kl, flt Kq) |
| typedef struct directional_light_t directional_light |
| typedef struct point_light_t point_light |
| void free_light_special | ( | void * | voidlight | ) |
Definition at line 35 of file light.c.
References directional_light_shade_diffuse(), and light_t::shade_diffuse.
Referenced by rt_deletescene().
| void light_set_attenuation | ( | point_light * | li, |
| flt | Kc, | ||
| flt | Kl, | ||
| flt | Kq | ||
| ) |
Definition at line 129 of file light.c.
References point_light_t::attenuationfunc, point_light_t::Kc, point_light_t::Kl, point_light_t::Kq, light_complex_attenuation(), point_light_shade_diffuse(), and point_light_t::shade_diffuse.
Referenced by rt_light_attenuation().
| directional_light* newdirectionallight | ( | void * | , |
| vector | |||
| ) |
Definition at line 42 of file light.c.
References directional_light_t::dir, directional_light_shade_diffuse(), light_methods, and directional_light_t::shade_diffuse.
Referenced by rt_directional_light().
| point_light* newlight | ( | void * | , |
| vector | , | ||
| flt | |||
| ) |
| point_light* newpointlight | ( | void * | , |
| vector | , | ||
| flt | |||
| ) |
Definition at line 63 of file light.c.
References point_light_t::attenuationfunc, point_light_t::ctr, point_light_t::fallend, point_light_t::fallstart, point_light_t::Kc, point_light_t::Kl, point_light_t::Kq, light_methods, light_no_attenuation(), light_no_falloff(), point_light_t::rad, point_light_t::shade_diffuse, simple_point_light_shade_diffuse(), point_light_t::spotdir, and point_light_t::spotfunc.
Referenced by rt_light().
| point_light* newspotlight | ( | void * | tex, |
| vector | ctr, | ||
| flt | rad, | ||
| vector | dir, | ||
| flt | fallstart, | ||
| flt | fallend | ||
| ) |
Definition at line 95 of file light.c.
References point_light_t::attenuationfunc, point_light_t::ctr, point_light_t::fallend, point_light_t::fallstart, point_light_t::Kc, point_light_t::Kl, point_light_t::Kq, light_methods, light_no_attenuation(), light_spotlight_falloff(), point_light_shade_diffuse(), point_light_t::rad, point_light_t::shade_diffuse, point_light_t::spotdir, and point_light_t::spotfunc.
Referenced by rt_spotlight().
1.8.14