Fun Shading

In this page I putted some shading examples created by myself. These examples use DirectX 10 pixel shader and geometry shader for pixel lighting, texture mapping, fog, cube mapping, reflection and refraction.

 

Pixel Lighting

The example shows how to implement directional light, point light, spot light, specular highlight, and hemisphere lighting.

 

Texture Mapping

The example shows the implementation for texture rendering target, single/multi texture mapping, texture animation, light map and bump mapping.

 

Fog

The example shows the implementation for fog using pixel shader.

 

 

Cube Mapping

The example shows geometry shader based cube mapping with reflection and refraction effect.