@Malice. Try this code. Can't confirm that it's works fine, as i'm at college the now.
[code]
Graphics3d 800,600
setbuffer backbuffer()
camera=createcamera()
positionentity camera,0,0,-10
cube1=createcube()
positionentity cube1,3,0,2
entitycolor cube1,100,150,70
cube2=createcube()
positionentity cube2,-2,0,0
entitycolor cube2,50,50,200
camerafogmode camera,1
camerafogcolor camera,200,200,200
camerafogrange camera,-2000,2000
while not keyhit(1)
updateworld
renderworld
flip
wend
end
[\code]
I'll check the effect out when i get home :o)
[code]
Graphics3d 800,600
setbuffer backbuffer()
camera=createcamera()
positionentity camera,0,0,-10
cube1=createcube()
positionentity cube1,3,0,2
entitycolor cube1,100,150,70
cube2=createcube()
positionentity cube2,-2,0,0
entitycolor cube2,50,50,200
camerafogmode camera,1
camerafogcolor camera,200,200,200
camerafogrange camera,-2000,2000
while not keyhit(1)
updateworld
renderworld
flip
wend
end
[\code]
I'll check the effect out when i get home :o)