W3cubDocs

/Godot 3.0

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

Enums

enum BakeMode

  • BAKE_DISABLED = 0
  • BAKE_INDIRECT = 1
  • BAKE_ALL = 2

enum Param

  • 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.

© 2014–2018 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
http://docs.godotengine.org/en/3.0/classes/class_light.html