Closed scottlittle closed 5 years ago
I also posted this as a stackoverflow question.
The fog object should be set to the fog
attribute of the scene, not as a child of the scene. Does that fix the issue?
Yes. Thanks!
FYI, future googler:
# set scene
scene = Scene( fog=Fog(near=15,far=40), children=[ *spheres,
*lines_, hover_point,
DirectionalLight(color='#777777', position=[10,20,30]),
DirectionalLight(color='#777777', position=[10,-20,-30]),
AmbientLight(color='#ffffff')
])
Thanks for following up with a working example!
I can't seem to get Fog or FogExp2 to work. The below code runs, but does nothing in my scene.