_water_setup:
rem make reflection camera
make camera 1 : set camera range 1,50,1500000
`set camera fov 1,80 :
color backdrop 1,0
set camera to image 1,20,512,512
rem make water
set dir "Water"
load image "waves.jpg",30
make object plain 20,2000,2000
position object 20, 0,0,0
xrotate object 20,270
texture object 20,0,20
texture object 20,1,30
load effect "water.fx",1,0
set object effect 20,1
set object transparency 20,1
set dir ".."
load image "Ground.png",31
make object plain 21,2000,2000
position object 21, 0,-10,0
xrotate object 21,270
texture object 21,31
return
_water_handle:
`
rem move camera 2 to camera 1 pos
position camera 1,camera position x(),camera position y(),camera position z()
rotate camera 1,-camera angle x(),camera angle y(),camera angle z()
`
rem water movement
` fTime = (timer()-fStartTime)/1000.0
` set effect constant float 1,"fTime",fTime
`
return
programming is a hobby, not a job.
P.S. in google and youtube - nikename pavelman- it is not me!