forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 20
class_light
reduz edited this page Jun 12, 2014
·
10 revisions
####Inherits: VisualInstance ####Category: Core
Provides a base class for different kinds of light nodes.
- void set_parameter ( int variable, float value )
- float 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
- void set_bake_mode ( int bake_mode )
- int get_bake_mode ( ) const
- void set_enabled ( bool enabled )
- bool is_enabled ( ) 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.