Skip to content

Shader Series 4 Materials and Multiple Light Sources

Simon (darkside) Jackson edited this page Aug 21, 2020 · 6 revisions

Shader Series 4: Materials and Multiple Light Sources (ARCHIVED)

Area Submitted Type
Games: Graphics, Games: Shaders 8/13/2007 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 key message with all shader programming is flexibility. The fast, parallel floating-point math executed on the GPU can be used for arbitrarily more complex and interesting rendering. However, to really benefit from all this power, some level of organization is required to combine these elements into a detailed and varied 3D scene.

Until now, the Shader Series has focused on single meshes, single lights, and single materials. However, a real game requires multiples of all these techniques, and some means of operating on them efficiently without removing their inherent flexibility or usability. This sample is an example of how a developer might combine the techniques leading up to this sample into a usable system for composing a 3D scene. In that sense, modern shaders are deeply tied to the architecture of any modern 3D engine, and the design of an engine informs the shader implementations used.

Other items in the Shader Series

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

Download Size Description
MaterialsAndLights_ARCHIVE_2_0 1.53MB Source code and assets for the Shader Series 4: Materials & Lights Sample (XNA Game Studio 2.0, ARCHIVED).
MaterialsAndLights_ARCHIVE_2_0.zip 1.53MB Source code and assets for the Shader Series 4: Materials & Lights Sample (XNA Game Studio 2.0, ARCHIVED).
Clone this wiki locally