ItsMods

Full Version: Set Exponential Fog
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, Awesome

Another tutorial, Nyan Cat , this time is about the setExpFog command, what it does, is create a exponential fog, is mainly used in game art for vision, Smile

It works like this(sorry, contains lot of parametres if you want to use it properly, if you use all functions until sun red, will work too):

Code:
setExpFog( start distance, halfway distance, red, green, blue, max opacity, transition time, sun red, sun green, sun blue, sun max opacity, sun direction, sun begin fade angle, sun end fade angle )

If I am wrong in something, comment about it.

An example of its use:

Code:
    setExpFog( 101, 50.5, 0.66, 0.83, 1, 0.14, 0, 0.82, 0.79, 0.49, (-0.75,-0.29,0.58), 3.54, 76.38, 1.16 );

Nyan Cat says that thats all
(07-27-2011, 17:33)Yamato Wrote: [ -> ]Hello, Awesome

Another tutorial, Nyan Cat , this time is about the setExpFog command, what it does, is create a exponential fog, is mainly used in game art for vision, Smile

It works like this(sorry, contains lot of parametres if you want to use it properly, if you use all functions until sun red, will work too):

Code:
setExpFog( start distance, halfway distance, red, green, blue, max opacity, transition time, sun red, sun green, sun blue, sun max opacity, sun direction, sun begin fade angle, sun end fade angle )

If I am wrong in something, comment about it.

An example of its use:

Quote: setExpFog( 101, 50.5, 0.66, 0.83, 1, 0.14, 0, 0.82, 0.79, 0.49, (-0.75,-0.29,0.58), 3.54, 76.38, 1.16 );

Nyan Cat says that thats all

what is the red part for? and why is it grouped?
sun max opacity