Some Tips
¡
Check for errors!
l
CgErrorException.checkCgError();
l
Debug output in shaders
l
Normals, incident directions, different
terms in BRDFs, etc.
¡
Can compile .cg programs
l
cgc
–
profile vp20
–
entry (function
name) Program.cg