Cg in Action: Normal Shader
¡
First demo: using 1 vertex shader
to shade a cube based on its normal
¡
Based on OpenGLDemo02 from last
week
¡
First look at Normal.cg, then at the
Java code to actually use it