Messages |
color | four floats | set the surface color |
delay | float | set the wave delay |
specularity | bool | set the surface specuarity mode |
phaseSpeed | float | set the wave speed |
rippleSize | float | set the wave width |
rippleHeight | float | set the wave height |
size | two floats | set the size of the surface |
wall | bool | set the wall intersection mode |
floor | bool | set the floor intersection mode |
start | start the water motion | |
reset | reset the surface parameters |
Comments |
constructor water
destructor ~water
method reset
method message
1 set the surface color
2 set the wave delay
3 set the surface specuarity mode
4 set the wave speed
5 set the wave width
6 set the wave height
7 set the size of the surface
8 set the wall intersection mode
9 set the floor intersection mode
10 start the water motion
11 reset the surface parameters
method createGeode
1 initialize surface points
2 create geoset
3 set up tristrip indexing
4 create geostate
5 create geode
method app
1 if first frame then create geometry
2 check if delay has passed
3 change the geometry of the waves