120. Shader Series 4: Materials & Multiple Light Sources

Description:

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


Downloads

Also, check out the updated Deferred Rendering Sample which uses dynamic directional and point lights very efficiently. It also comes equipped with a normal mapping and custom content processor with multiple materials.