d3d_set_fog(enable,color,start,end)

From ENIGMA
Jump to navigation Jump to search

Description

Sets the use of fog (enabled or disabled) using a bi-linear interpolation method of blending the pixels based on distance.

Parameters

Parameter Data Type Description
enable boolean whether or not fog is currently enabled
color integer the color of the fog (the color to blend the pixel data to based on depth)
start double the beginning depth plane at which fog is the least blended
end double the ending depth plane at which fog is the most blended

Return Values

void: This function does not return anything.

Example Call

// demonstrates setting the use of white fog from the near plane of the camera to the far plane of the camera
// the default projection planes are 1, and 32000 for both  ENIGMA and Game Maker
d3d_set_fog(true, c_white, znear, zfar);