
Having fog, the player only will see the details of any object when it is near.
The prefix/object for the use of the elements of the Class is Fog.
We recomend these values for the properties (for the default BBG ground, 100x100). Include these lines in the PostWorld.js file.
Fog.active = true; Fog.color = Color( 0.7, 0.7, 0.7, 1); //gray Fog.dropOff = Fog.LINEAR; Fog.near = 1000; Fog.far = 1500; Fog.density = 0.1;
TIP: Our sugestion is that you create a SkyBox having files only with flat light-gray color, not images.
PREVIOUS LESSON NEXT LESSON T.CONTENTS HOMEPAGE
