Deferred lighting and Deferred shading

From Valve Developer Community
Jump to: navigation, search
English (en)Translate (Translate)

Deferred lighting is an alternate lighting technique and modification of deferred shading, a screen-space shading technique that allows many lights to be rendered on the scene without significant performance hit.

It is much different from the default Radiosity lighting that comes with Source Source. It uses many different lighting passes to generate higher quality lighting, with real time shadows.

Differences from vanilla radiosity

When compiling a map in any of Valve Valve's games, each map is run through VRAD, which takes data from all the light sources and compile them into a lightmap texture. While this does provide high-quality and variable lighting, it is completely static, save for the limited ability to toggle on some lights in a scene. The difference between radiosity and Deferred lighting is that Deferred lighting computes all its lights in real time. The game takes data from the normals of the object, its geometry, its albedo, and its specular lighting to create real time accurate lighting.

Features

Drawbacks

  • Traditional antialiasing like MSAA might not work with it like in Black Mesa Black Mesa (which was removed and replaced with FXAA because MSAA combined with deferred lighting caused certain models to have glowing outline around it),[1] but it depends how it was implemented into the game. As with Alien Swarm Deferred, and Lambda Wars is still supported, through it's recommended that you should use post-processing anti-aliasing method instead as they work best with deferred lighting, and has less performance hit.
  • All lightmaps are disabled and only deferred lighting lights the world. (only in Alien Swarm Deferred)
  • Can be more taxing on older systems.
  • DX9 or later only, older DirectX compatibility versions are not supported.

Media

Deferred phong ref.png

Availability

Very few Source Engine games utilize this lighting technique, as it is very complicated to implement, the games that do use this are listed here:

Tutorials

See also

External links

References

References
1. Xen Technical Beta and Screenshot by [TC]Ciaиєz ITA:

Known Issues - Haloing Around Props/Object
MSAA is causing outlines around certain objects. MSSA is a performance killer and we hope to have a better solution for anti-aliasing with the Xen release. To remove the haloing/outline, simply turn off MSAA. Retrieved May 10, 2024.