How can I set a shadow on an object?
I have a matrix as floor and a plain object as wall.
The mouse pointer is moving on the wall.
How can I set a shadow at the mouse pointer?
Function Menu()
LoadMenuObjects()
Make Light 1
Color Light 1,RGB(255,255,255)
Position Light 1,10,300,384
Set Light Range 1,5000
Point Light 1,1024,384,768
Position Camera 0,512,296,-16
ArrowX#=512:ArrowY#=384
Do
ArrowX#=ArrowX#+(MouseMoveX()/.5)
ArrowY#=ArrowY#-(MouseMoveY()/.5)
Position Object 5,ArrowX#,ArrowY#,760
Sync
Loop
EndFunction
Function LoadMenuObjects()
Make Matrix 1,1024,768,1,1
Load Image "images/table.png",1
Prepare Matrix Texture 1,1,1,1
Make Object Plain 2,1024,768
Load Image "images/menu.png",2
Texture Object 2,2
Position Object 2,512,384,768
Make Object Plain 3,512,768
Load Image "images/menuborder.png",3
Texture Object 3,3
Position Object 3,0,384,512
yRotate Object 3,Object Angle Y(3)-90
Make Object Plain 4,512,768
Texture Object 4,3
Position Object 4,1024,384,512
yRotate Object 4,Object Angle Y(4)+90
Load Object "models/arrow.x",5
Position Object 5,512,384,740
EndFunction