MyBillboard

MyBillboard

Represents the billboard which shows the percentage of supplies delivered.

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

display()

Displays the static part of billboard.
Source:

displayWithShaders()

Displays the part of the billboard that requires shaders.
Source:

init()

Initializes the objects, shaders and positions.
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: