Tachyon (current)  Current Main Branch
Data Fields
point_light_t Struct Reference

#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...
 

Detailed Description

Definition at line 18 of file light.h.

Field Documentation

◆ attenuationfunc

flt(* point_light_t::attenuationfunc) (void *, flt)

attenuation fctn pointer

Definition at line 23 of file light.h.

Referenced by light_set_attenuation(), newpointlight(), newspotlight(), and point_light_shade_diffuse().

◆ ctr

vector point_light_t::ctr

◆ fallend

flt point_light_t::fallend

fallof end angle

Definition at line 30 of file light.h.

Referenced by light_spotlight_falloff(), newpointlight(), and newspotlight().

◆ fallstart

flt point_light_t::fallstart

fallof start angle

Definition at line 29 of file light.h.

Referenced by light_spotlight_falloff(), newpointlight(), and newspotlight().

◆ Kc

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().

◆ Kl

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().

◆ Kq

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().

◆ rad

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().

◆ shade_diffuse

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().

◆ spotdir

vector point_light_t::spotdir

spotlight direction

Definition at line 28 of file light.h.

Referenced by light_spotlight_falloff(), newpointlight(), and newspotlight().

◆ spotfunc

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().


The documentation for this struct was generated from the following file: