d3d_set_fog - hpgDesigns/hpgdesigns-dev.io GitHub Wiki

Notation

Description

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

Parameters

  • enable whether or not fog is currently enabled
  • color the color of the fog (the color to blend the pixel data to based on depth)
  • start the beginning depth plane at which fog is the least blended
  • end the ending depth plane at which fog is the most blended

Return Values

No values are returned from the function.

Example Call

// This 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);

NOTOC

⚠️ **GitHub.com Fallback** ⚠️