Light

Undocumented in source.

Constructors

this
this(vec3 color)
Undocumented in source.

Members

Properties

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.
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.
direction
vec3 direction [@property getter]

direction in world coordinates

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.
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.
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.
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.
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.
type
LightType type [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

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

Variables

_autobind
bool _autobind;
Undocumented in source.
_color
vec3 _color;
Undocumented in source.
_enabled
bool _enabled;
Undocumented in source.
_node
Node3d _node;
Undocumented in source.

Inherited Members

From RefCountedObject

_refCount
int _refCount;

count of references to this object from Ref

refCount
int refCount [@property getter]

returns current value of reference counter

addRef
void addRef()

increments reference counter

releaseRef
void releaseRef()

decrement reference counter, destroy object if no more references left

~this
~this()
Undocumented in source.

Meta