- getBakeMode
Light.BakeMode getBakeMode()
- getColor
Color getColor()
- getCullMask
long getCullMask()
- getParam
double getParam(long param)
- getShadowColor
Color getShadowColor()
- getShadowReverseCullFace
bool getShadowReverseCullFace()
- hasShadow
bool hasShadow()
- isEditorOnly
bool isEditorOnly()
- isNegative
bool isNegative()
- opAssign
Light opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(Light other)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
- setBakeMode
void setBakeMode(long bake_mode)
- setColor
void setColor(Color color)
- setCullMask
void setCullMask(long cull_mask)
- setEditorOnly
void setEditorOnly(bool editor_only)
- setNegative
void setNegative(bool enabled)
- setParam
void setParam(long param, double value)
- setShadow
void setShadow(bool enabled)
- setShadowColor
void setShadowColor(Color shadow_color)
- setShadowReverseCullFace
void setShadowReverseCullFace(bool enable)
- editorOnly
bool editorOnly [@property setter]
If true the light only appears in the editor and will not be visible at runtime. Default value:false.
- editorOnly
bool editorOnly [@property getter]
If true the light only appears in the editor and will not be visible at runtime. Default value:false.
- lightBakeMode
Light.BakeMode lightBakeMode [@property getter]
long lightBakeMode [@property setter]
The light's bake mode. See bakemode.
- lightColor
Color lightColor [@property getter]
Color lightColor [@property setter]
- lightCullMask
long lightCullMask [@property getter]
long lightCullMask [@property setter]
The light will affect objects in the selected layers.
- lightEnergy
double lightEnergy [@property getter]
double lightEnergy [@property setter]
The light's strength multiplier.
- lightIndirectEnergy
double lightIndirectEnergy [@property getter]
double lightIndirectEnergy [@property setter]
Secondary multiplier used with indirect light (light bounces). This works in baked light or GIProbe.
- lightNegative
bool lightNegative [@property getter]
bool lightNegative [@property setter]
If true the light's effect is reversed, darkening areas and casting bright shadows. Default value: false.
- lightSpecular
double lightSpecular [@property getter]
double lightSpecular [@property setter]
The intensity of the specular blob in objects affected by the light. At 0 the light becomes a pure diffuse light.
- shadowBias
double shadowBias [@property getter]
double shadowBias [@property setter]
Used to adjust shadow appearance. Too small a value results in self shadowing, while too large a value causes shadows to separate from casters. Adjust as needed.
- shadowColor
Color shadowColor [@property getter]
Color shadowColor [@property setter]
The color of shadows cast by this light.
- shadowContact
double shadowContact [@property getter]
double shadowContact [@property setter]
- shadowEnabled
bool shadowEnabled [@property getter]
bool shadowEnabled [@property setter]
If true the light will cast shadows. Default value: false.
- shadowReverseCullFace
bool shadowReverseCullFace [@property getter]
bool shadowReverseCullFace [@property setter]
Provides a base class for different kinds of light nodes.
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.