Constructor
new ThurstonLite(shader1, shader2, set, params)
Constructor.
Parameters:
Name | Type | Description |
---|---|---|
shader1 |
string | the first part of the geometry dependent shader |
shader2 |
string | the second part of the geometry dependent shader |
set |
TeleportationSet | the teleportation set |
params |
Object | additional parameters including
|
Classes
Members
callback :function
A callback called at each frame
Type:
- function
camera :BasicCamera
The non-euclidean camera for the basic renderer
Type:
(protected) clock :Clock
A clock to measure the time between two call of animate
Type:
- Clock
(protected) flyControls :FlyControls
The keyboard controls to fly in the scene
Type:
gui :GUI
The graphical user interface. Setup when the renderer is built.
Type:
- GUI
renderer :BasicRenderer
Non-euclidean renderer for basic renderer
Type:
scene :Scene
The non-euclidean scene
Type:
set :TeleportationSet
The underlying subgroup
Type:
stats :Stats
The performance stats. Setup when the renderer is built.
Type:
- Stats
Methods
add(…obj)
Shortcut to add objects to the scene.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
obj |
Solid | Light |
<repeatable> |
the objects to add |
animate()
animation function
initGUI() → {ThurstonLite}
Initialize the graphic user interface
Returns:
the current Thurston object
- Type
- ThurstonLite
initStats() → {Thurston}
Initialize the performance stats
Returns:
the current Thurston object
- Type
- Thurston
onWindowResize(event)
Action when the window is resized.
Parameters:
Name | Type | Description |
---|---|---|
event |
UIEvent |
run()
Build the renderer and run the animation.