Depth buffer
Jump to navigation
Jump to search
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.