-
Notifications
You must be signed in to change notification settings - Fork 0
class_light
reduz edited this page Feb 23, 2014
·
11 revisions
####Inherits: VisualInstance ####Category: Core
Provides a base class for different kinds of light nodes.
- void
set_parameter( int variable, real value ) -
real
get_parameter( int arg0 ) const - void
set_color( int color, Color value ) -
Color
get_color( int arg0 ) const - void
set_project_shadows( bool enable ) -
bool
has_project_shadows( ) const - void
set_projector( Texture projector ) -
Texture
get_projector( ) const - void
set_operator( int operator ) -
int
get_operator( ) const
- PARAM_RADIUS = 2
- PARAM_ENERGY = 3
- PARAM_ATTENUATION = 4
- PARAM_SPOT_ANGLE = 1
- PARAM_SPOT_ATTENUATION = 4
- PARAM_SHADOW_DARKENING = 5
- PARAM_SHADOW_Z_OFFSET = 6
- COLOR_AMBIENT = 0
- COLOR_DIFFUSE = 1
- COLOR_SPECULAR = 2
Light is the abstract base class for light nodes, so it shouldn't be used directly (It can't be instanced). Other types of light nodes inherit from it. Light contains the common variables and parameters used for lighting.