Constructor
new MyBillboard(scene, maxSupplies)
Instantiates a new billboard instance.
- Source:
Parameters:
Name | Type | Default | Description |
---|---|---|---|
scene |
CGFscene
|
the scene | |
maxSupplies |
integer
|
5 | the max supplies |
Methods
displayWithShaders()
Displays the part of the billboard that requires shaders.
- Source:
update(t, supplies)
Updates the percentage filler shader.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
t |
integer
|
the current time |
supplies |
*
|
the number of supplies delivered |
updateHeight()
Updates the height of the billboard given the height of the terrain.
- Source: