Class: ShadowReceiver

ShadowReceiver(theReceiverObject) → {ShadowReceiver}

new ShadowReceiver(theReceiverObject) → {ShadowReceiver}

Default Constructor

Draws the mReceiver, and the shadows of mCasters on this mReceiver

Parameters:
Name Type Description
theReceiverObject ShadowReceiver
Source:
Returns:
new Instance of ShadowReceiver
Type
ShadowReceiver

Methods

addShadowCaster(lgtRenderable) → {void}

Associate a ShadowCaster with a LightRenderable
Parameters:
Name Type Description
lgtRenderable LightRenderable to associate
Source:
Returns:
Type
void

draw(aCamera) → {void}

Draw function called by GameLoop
Parameters:
Name Type Description
aCamera Camera Camera to draw too
Source:
Returns:
Type
void

update() → {void}

Update Function called by GameLoop
Source:
Returns:
Type
void