Tachyon (current)
Current Main Branch
|
#include <light.h>
Data Fields | |
RT_OBJECT_HEAD flt(* | shade_diffuse )(struct point_light_t *, shadedata *) |
diffuse shading function More... | |
vector | ctr |
point light position More... | |
flt | rad |
point light radius when visible More... | |
flt(* | attenuationfunc )(void *, flt) |
attenuation fctn pointer More... | |
flt | Kc |
constant attenuation factor More... | |
flt | Kl |
linear attenuation factor More... | |
flt | Kq |
quadratic attenuation factor More... | |
flt(* | spotfunc )(void *, vector *) |
spotlight fctn pointer More... | |
vector | spotdir |
spotlight direction More... | |
flt | fallstart |
fallof start angle More... | |
flt | fallend |
fallof end angle More... | |
attenuation fctn pointer
Definition at line 23 of file light.h.
Referenced by light_set_attenuation(), newpointlight(), newspotlight(), and point_light_shade_diffuse().
vector point_light_t::ctr |
point light position
Definition at line 21 of file light.h.
Referenced by ext_volume_texture(), light_intersect(), light_normal(), newpointlight(), newspotlight(), par_volume_texture(), point_light_shade_diffuse(), and simple_point_light_shade_diffuse().
flt point_light_t::fallend |
fallof end angle
Definition at line 30 of file light.h.
Referenced by light_spotlight_falloff(), newpointlight(), and newspotlight().
flt point_light_t::fallstart |
fallof start angle
Definition at line 29 of file light.h.
Referenced by light_spotlight_falloff(), newpointlight(), and newspotlight().
flt point_light_t::Kc |
constant attenuation factor
Definition at line 24 of file light.h.
Referenced by light_complex_attenuation(), light_set_attenuation(), newpointlight(), and newspotlight().
flt point_light_t::Kl |
linear attenuation factor
Definition at line 25 of file light.h.
Referenced by light_complex_attenuation(), light_set_attenuation(), newpointlight(), and newspotlight().
flt point_light_t::Kq |
quadratic attenuation factor
Definition at line 26 of file light.h.
Referenced by light_complex_attenuation(), light_set_attenuation(), newpointlight(), and newspotlight().
flt point_light_t::rad |
point light radius when visible
Definition at line 22 of file light.h.
Referenced by light_intersect(), newpointlight(), and newspotlight().
RT_OBJECT_HEAD flt(* point_light_t::shade_diffuse) (struct point_light_t *, shadedata *) |
diffuse shading function
Definition at line 20 of file light.h.
Referenced by light_set_attenuation(), newpointlight(), and newspotlight().
vector point_light_t::spotdir |
spotlight direction
Definition at line 28 of file light.h.
Referenced by light_spotlight_falloff(), newpointlight(), and newspotlight().
flt(* point_light_t::spotfunc) (void *, vector *) |
spotlight fctn pointer
Definition at line 27 of file light.h.
Referenced by newpointlight(), newspotlight(), and point_light_shade_diffuse().