DirectionalLight

Undocumented in source.
protected protected
static if(ENABLE_OPENGL)
static if(BACKEND_GUI)
class DirectionalLight : Light {}

Constructors

this
this(vec3 color)
Undocumented in source.

Inherited Members

From Light

_node
Node3d _node;
Undocumented in source.
_color
vec3 _color;
Undocumented in source.
_autobind
bool _autobind;
Undocumented in source.
_enabled
bool _enabled;
Undocumented in source.
color
vec3 color [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
color
vec3 color [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
type
LightType type [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
autobind
bool autobind [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
autobind
bool autobind [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
enabled
bool enabled [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
enabled
bool enabled [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
node
Node3d node [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
node
Node3d node [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
direction
vec3 direction [@property getter]

direction in world coordinates

position
vec3 position [@property getter]

position in world coordinates

range
float range [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
range
float range [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
rangeInverse
float rangeInverse [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
innerAngle
float innerAngle [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
innerAngleCos
float innerAngleCos [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
outerAngle
float outerAngle [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
outerAngleCos
float outerAngleCos [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
createDirectional
Light createDirectional(vec3 color)

create new directional light

createPoint
Light createPoint(vec3 color, float range)

create new point light

createSpot
Light createSpot(vec3 color, float range, float innerAngle, float outerAngle)

create new point light

Meta