|
Obsolete. Use STATE_engine_set_fog() instead.
Set the color of the fog.
Even if you don't use fog, you might want to use this function
to reduce visible cracks seen between adjacent polygons. For that matter one should use a color that is as close as possible
to the dominate world in the world
This function also set automatically the background color to the fog color (see STATE_engine_set_background_color() )
Here are some tips for getting natural results:
1) Choose a color that is very close to the dominant color in your world.
for example if your world is a desert then your fog color (atmosphere color) should
lean towards the color of sand.
2) Choose colors where the red==green==blue .Shades of gray look best
even if you want to have a blue fog color then don't use 0,0,255
this will be very unnatural ... Colors such as (180,200,220) where the blue is a little bit
higher than the rest, will give a much better effect.
Always try:
Black - (0,0,0)
Gray - (128,128,128) or any shade of gray
See also STATE_engine_set_background_color()
|