#1
|
|||
|
|||
Fog on the horizon
I'm trying to make the horizon foggy so that it doesn't look like
a sharp line between ground and sky. The problem is that the fog works on the ground but not on the sky. Here is my code: Code:
from viz import * go() env = viz.add(viz.ENVIRONMENT_MAP,'sky.jpg') sky = viz.add('skydome.dlc') sky.texture(env) terrain = viz.add('InfiniteTerrain.dlc',1,'456',0,700,15000,0.005) grass = viz.add('gb_noise.jpg') grass.wrap(viz.WRAP_S,viz.REPEAT) grass.wrap(viz.WRAP_T,viz.REPEAT) terrain.texture(grass) terrain.emissive(1,1,1) terrain.command(1,'',0,0) clip(0.5, 100) fog(2,20) fogcolor(WHITE) |
|
|