Depth buffer

From Valve Developer Community
Revision as of 08:45, 15 January 2011 by TomEdwards (talk | contribs) (Created page with 'thumb|Source's depth buffer is very limited The '''depth buffer''' is a texture in which each on-screen pixel is assigned a greyscale value depending…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Source's depth buffer is very limited

The depth buffer is a texture in which each on-screen pixel is assigned a greyscale value depending on its distance from the camera. This allows visual effects to easily alter with distance. It is used for soft particles.

Source's depth buffer is rendered at 50% of the screen size, without anti-aliasing, and to a maximum distance of 192 units. It can be viewed with r_depthoverlay.

Todo: Differences between depth buffer and fog.