Light

*

Constructors

this
this(string id)

*

Destructor

~this
~this()
Undocumented in source.

Members

Functions

applyTo
typeof(this) applyTo(string shaderId)

* Apply light to a primitive or terrain. * Returns reference to this so it can be used in a stream.

getAttenuation
Vector3F getAttenuation()

*

getColor
Vector3F getColor()

*

getIndex
uint getIndex()

*

setAttenuation
typeof(this) setAttenuation(Vector3F attenuation)

* * Returns reference to this so it can be used in a stream.

setColor
typeof(this) setColor(Vector3F color)

* * Returns reference to this so it can be used in a stream.

Mixins

__anonymous
mixin NodeBody
Undocumented in source.

Mixed In Members

From mixin NodeBody

this
this(string id)
Undocumented in source.

Inherited Members

From Entity

transform
Transform transform;
id
string id;
scene
Scene scene;
visibility
Visibility visibility;
model
Model model;
addComponent
typeof(this) addComponent(T component)
removeComponent
typeof(this) removeComponent(ComponentType type)
component
T component()
start
void start()

Called after all scene entitys instantiation. It is optional.

update
void update()

Called every frame to update the current state of the scene entity. It is optional.

Meta