Skip to content
reduz edited this page Jun 12, 2014 · 10 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 = 4
  • PARAM_SHADOW_DARKENING = 5
  • PARAM_SHADOW_Z_OFFSET = 6
  • COLOR_AMBIENT = 0
  • COLOR_DIFFUSE = 1
  • COLOR_SPECULAR = 2

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