Lightsource object.
#include <ayam.h>
Data Fields | |
int | type |
light type: custom, point, spot, or distant (AY_LT*) | |
int | on |
light state: 0 off, 1 on | |
int | local |
light only local objects (same level and below)? | |
RtLightHandle | light_handle |
RI handle of local lights. | |
int | shadows |
light casts shadows? | |
int | samples |
number of samples (for area lights), default: 1 | |
double | intensity |
intensity of light source | |
double | cone_angle |
size of spot light cone | |
double | cone_delta_angle |
size of spot light penumbra | |
double | beam_distribution |
intensity distribution in spot light beam | |
int | use_sm |
create shadow map? | |
int | sm_resolution |
shadow map resolution | |
ay_shader * | lshader |
light shader (for custom lights only!) | |
double | tfrom [3] |
light source position | |
double | tto [3] |
light source aim point | |
int | colr |
light color | |
int | colg |
light color | |
int | colb |
light color |