CreateLight.bb 292 B

123456789101112131415
  1. Graphics3D 640,480
  2. camera = CreateCamera()
  3. MoveEntity camera,0,0,-3
  4. ball = CreateSphere()
  5. lite = CreateLight(1) ; change this to 2 or 3 to see different lights
  6. MoveEntity lite,5,0,0
  7. PointEntity lite,ball ; make sure light is pointing at ball
  8. While Not KeyDown(1)
  9. RenderWorld:Flip
  10. Wend
  11. End