Constructor
Optionalcontainer: string | HTMLElementcontainer element or selector string
GLViewer options
ReadonlyambReadonlycameraReadonlyclockOptionalcontainerReadonlydirReadonlyrendererReadonlysceneReadonlytopContainer height
Container width
Adds a listener to an event type.
The type of event to listen to.
The function that gets called when the event is fired.
Add the renderer to a container
container element or selector string
this
Threejs animation loop
ProtectedcreateCreate ambient light
AmbientLight
ProtectedcreateCreate camera
camera
ProtectedcreateCreate directional light
DirectionalLight
ProtectedcreateProtectedcreateCreate scene
scene
Fire an event type.
The event that gets fired.
Checks if listener is added to an event type.
The type of event to listen to.
The function that gets called when the event is fired.
Removes a listener from an event type.
The type of the listener that gets removed.
The listener function that gets removed.
Protectedupdate
Threejs scene initialize class with FlyControls