Methods
addTransform(obj)
Add Transform to scene objects list. If added transform is camera it is set as the active camera of the scene.
Parameters:
Name | Type | Description |
---|---|---|
obj |
Transform |
draw(gl, camera)
Sets up the camera and. Calls Transform#draw on each transform.
Parameters:
Name | Type | Description |
---|---|---|
gl |
WebGLRenderingContext | |
camera |
Camera | If camera is undefined, Scene#activeCamera is used instead. |
update()
Calls Transform#update on each transform.