forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 0
class_light
Lukas Sägesser edited this page Jun 22, 2015
·
12 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
- void set_editor_only ( bool editor_only )
- bool is_editor_only ( ) const
- PARAM_RADIUS = 2
- PARAM_ENERGY = 3
- PARAM_ATTENUATION = 4
- PARAM_SPOT_ANGLE = 1
- PARAM_SPOT_ATTENUATION = 0
- PARAM_SHADOW_DARKENING = 5
- PARAM_SHADOW_Z_OFFSET = 6
- COLOR_DIFFUSE = 0
- COLOR_SPECULAR = 1
- BAKE_MODE_DISABLED = 0
- BAKE_MODE_INDIRECT = 1
- BAKE_MODE_INDIRECT_AND_SHADOWS = 2
- BAKE_MODE_FULL = 3
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.