this is sample-code
SYNC RATE 30 : sync on
rem floor
make object box 1,1000,1,1000 : position object 1,0,-10,0
rem Make cylinders
make object cylinder 3,60 : position object 3, 0,0,0
make object cylinder 4,40 : position object 4, 0,0,-100
make object cylinder 5,20 : position object 5, 0,0,-200
for i=3 to 5
set shadow shading on i,-1,1000,1 `--------Object Number, Mesh Number, Shadow Range, Use Shader --------
next i
SET GLOBAL SHADOWS on `-------- on/off , default to on
SET GLOBAL SHADOW COLOR 255,0,0,64 `-------- RGBA , default to 128
SET GLOBAL SHADOW SHADES 3 `-------- n>0 , default to 1 , ??? GPU mode only ???
rem Create sphere to represent light
make object sphere 11,10 : COLOR OBJECT 11,rgb(255,0,0) : SET OBJECT light 11,2
rem Position camera
position camera 50,50,-400
rem Set light zero as point light
set point light 0,0,0,0 : color light 0,rgb(255,255,0)
rem Move lights past cylinders
do
rem Move light
a#=wrapvalue(a#+1)
x#=cos(a#)*100
position object 11,x#,10,50
position light 0,x#,10,50
sync
loop
end