Cg
programming.
Cg
programming
(high-level shading language).
If you form a pair, you must specify the ``division of labor'' (e.g., who did what) in your assignment TEAM file (scores will be divided equally, however).
Cg
to implement Phong shading:
Cg
) mode
Cg
code will only run on newer (4th generation)
NVidia graphics cards (e.g., GeForce FX).
Cg
examples to get started. You should be able to use
both .cg
vertex and fragment programs directly
(no changes) in your code.
Cg
's vertex and fragment programs is
very similar to texture maps - your program basically does
the following:
Cg
context.
Cg
profiles for the vertex and
fragment programs.
Cg
profiles.
Cg
vertex and fragment programs.
OpenGL
's
state parameters to the arguments of the shaders' code.
.tar
of your project 2 directory, complete with
a Makefile
and README
specifying compilation
requirements. Your code MUST compile and run on a Linux box.