Skip to content

Shader Series 1 Vertex Lighting

Simon Jackson edited this page Sep 1, 2016 · 9 revisions

#Shader Series 1: Vertex Lighting#

Area Games: Graphics, Games: Shaders Submitted 4/26/2007 Code Sample


Description:

This sample shows one of the most basic uses of shader effects — vertex lighting.

Sample Overview

This sample explores the diffuse and ambient lighting models and combines them into a simple first-step shader. Additionally, basic XNA Framework Effect code is explored to show how the C# source code interacts with the effect files.

Other items in the Shader Series

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

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

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

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

downloads

VertexLightingSample_4_0.zip

Size: 0.16MB

Source code and assets for the Shader Series 1: Vertex Lighting Sample (XNA Game Studio 4.0).

Clone this wiki locally