Light

Inherits: VisualInstance < Spatial < Node < Object

Inherited By: SpotLight, OmniLight, DirectionalLight

Category: Core

Brief Description

Provides a base class for different kinds of light nodes.

Member Variables

Numeric Constants

  • PARAM_ENERGY = 0
  • PARAM_INDIRECT_ENERGY = 1
  • PARAM_SPECULAR = 2
  • PARAM_RANGE = 3
  • PARAM_ATTENUATION = 4
  • PARAM_SPOT_ANGLE = 5
  • PARAM_SPOT_ATTENUATION = 6
  • PARAM_CONTACT_SHADOW_SIZE = 7
  • PARAM_SHADOW_MAX_DISTANCE = 8
  • PARAM_SHADOW_SPLIT_1_OFFSET = 9
  • PARAM_SHADOW_SPLIT_2_OFFSET = 10
  • PARAM_SHADOW_SPLIT_3_OFFSET = 11
  • PARAM_SHADOW_NORMAL_BIAS = 12
  • PARAM_SHADOW_BIAS = 13
  • PARAM_SHADOW_BIAS_SPLIT_SCALE = 14
  • PARAM_MAX = 15

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.