-
-
Notifications
You must be signed in to change notification settings - Fork 102
Shader Series 4 Materials and Multiple Light Sources
#Shader Series 4: Materials and Multiple Light Sources (ARCHIVED)#
Area Games: Graphics, Games: Shaders Submitted 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
[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).
Download | Size | Description |
---|---|---|
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). |