wont that be too slow?
ive stored the vcount in the water type to eliminate the uneccacery code:
Function UpdateWater()
For wa.water=Each water
wa\phase=wa\phase+wa\speed
la=wa\phase
wa\v=wa\v+1:
For v = 1 To wa\vcount
la=la+wa\speed
VertexCoords wa\surf,v,VertexX(wa\surf,v),(Sin(la)*wa\amplitude),VertexZ(wa\surf,v)
Next
UpdateNormals wa\h
Next
End Function
Would it be faster with an animated mesh?
ive stored the vcount in the water type to eliminate the uneccacery code:
Function UpdateWater()
For wa.water=Each water
wa\phase=wa\phase+wa\speed
la=wa\phase
wa\v=wa\v+1:
For v = 1 To wa\vcount
la=la+wa\speed
VertexCoords wa\surf,v,VertexX(wa\surf,v),(Sin(la)*wa\amplitude),VertexZ(wa\surf,v)
Next
UpdateNormals wa\h
Next
End Function
Would it be faster with an animated mesh?