Skip to content
Lukas Sägesser edited this page Jun 22, 2015 · 12 revisions

Light

####Inherits: VisualInstance ####Category: Core

Brief Description

Provides a base class for different kinds of light nodes.

Member Functions

Numeric Constants

  • 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

Description

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.

Member Function Description

Clone this wiki locally