September 9, 2012

Blinn-Phong Lighting

Requirements: Direct3D 9, Visual Studio 2010
Source code: Blinn-Phong Lighting

This demo presents Blinn-Phong shading mode for a torus object. Essentially, it demonstrates the quality of the image for the three cases:
1. Shading is done totally in vertex shader (per vertex shading)

2. Shading is done both in vertex and pixel shaders (per pixel shading)

3. Shading is done totally in pixel shader (true per pixel shading)


References:
1. Edward Angel, David Shreiner. 2011. "Interactive Computer Graphics: a Top-Down Approach with Shader Based OpenGL" - 6th ed. pp. 257-298
2. Kris Gray. 2003. "DirectX 9. Programmable Graphics Pipeline"

No comments:

Post a Comment