Skip to content

Shader Series 5 Multipass Lighting

Simon (darkside) Jackson edited this page Aug 20, 2020 · 7 revisions

#Shader Series 5: Multipass Lighting (ARCHIVED)#

Area Games: 3D Graphics, Games: Graphics, Games: Shaders Submitted 8/29/2008 Code Sample


Description:

Note: This sample is no longer supported. It may demonstrate techniques that are no longer valid in current versions of XNA Game Studio. The sample is archived here, but will not be updated.

The number and types of lighting effects that can be applied to a given piece of geometry are limited only by the need to maintain an interactive framerate. In this sample, shader programs are run multiple times on individual pieces of geometry to enable hundreds of lights on a single piece of geometry.

Additive, multipass lighting techniques are not unique to programmable shader hardware, but shaders add additional flexibility in batching for performance. This sample uses blend states to add the effects of individual draws to the back buffer, allowing multiple draws to light the same piece of geometry.

Other items in the Shader Series

[Shader Series: Introduction](https://github.com/simondarksidej/XNAGameStudio/wiki/Shader Series Introduction) (Article)

[Shader Series 1: Vertex Lighting Sample](https://github.com/simondarksidej/XNAGameStudio/wiki/Shader Series 1 Vertex Lighting)

[Shader Series 2: Textures and Colors Sample](https://github.com/simondarksidej/XNAGameStudio/wiki/Shader Series 2 Textures and Colors)

[Shader Series 3: Per-Pixel Lighting Sample](https://github.com/simondarksidej/XNAGameStudio/wiki/Shader Series 3 Per-Pixel Lighting)

All content and source code downloaded from this page is bound to the Microsoft Permissive License (Ms-PL).

XNA_Multipass_01_small.jpgXNA_Multipass_02_small.jpgXNA_Multipass_03_small.jpg

Download Size Description
MultipassLighting_ARCHIVE_2_0.zip 1.53MB Source code and assets for the Shader Series 5: Multipass Lighting Sample (XNA Game Studio 2.0, ARCHIVED).
Clone this wiki locally