Introduction - If you have any usage issues, please Google them yourself
How to introduce your existing graphics program to add on the vertex and fragment shader senior. The use of CG shading language
Packet : 77433629cg-1.5_beta2_examples.zip filelist
Direct3D9_Basic/01_vertex_program/01_vertex_program.cpp
Direct3D9_Basic/01_vertex_program/01_vertex_program_2003.vcproj
Direct3D9_Basic/01_vertex_program/01_vertex_program_2005.vcproj
Direct3D9_Basic/01_vertex_program/C2E1v_green.cg
Direct3D9_Basic/02_vertex_and_fragment_program/02_vertex_and_fragment_program.cpp
Direct3D9_Basic/02_vertex_and_fragment_program/02_vertex_and_fragment_program_2003.vcproj
Direct3D9_Basic/02_vertex_and_fragment_program/02_vertex_and_fragment_program_2005.vcproj
Direct3D9_Basic/02_vertex_and_fragment_program/C2E1v_green.cg
Direct3D9_Basic/02_vertex_and_fragment_program/C2E2f_passthru.cg
Direct3D9_Basic/03_uniform_parameter/03_uniform_parameter.cpp
Direct3D9_Basic/03_uniform_parameter/03_uniform_parameter_2003.vcproj
Direct3D9_Basic/03_uniform_parameter/03_uniform_parameter_2005.vcproj
Direct3D9_Basic/03_uniform_parameter/C2E2f_passthru.cg
Direct3D9_Basic/03_uniform_parameter/C3E1v_anycolor.cg
Direct3D9_Basic/04_varying_parameter/04_varying_parameter.cpp
Direct3D9_Basic/04_varying_parameter/04_varying_parameter_2003.vcproj
Direct3D9_Basic/04_varying_parameter/04_varying_parameter_2005.vcproj
Direct3D9_Basic/04_varying_parameter/C2E2f_passthru.cg
Direct3D9_Basic/04_varying_parameter/C3E2v_varying.cg
Direct3D9_Basic/05_texture_sampling/05_texture_sampling.cpp
Direct3D9_Basic/05_texture_sampling/05_texture_sampling_2003.vcproj
Direct3D9_Basic/05_texture_sampling/05_texture_sampling_2005.vcproj
Direct3D9_Basic/05_texture_sampling/C3E2v_varying.cg
Direct3D9_Basic/05_texture_sampling/C3E3f_texture.cg
Direct3D9_Basic/05_texture_sampling/demon_image.h
Direct3D9_Basic/06_vertex_twisting/06_vertex_twisting.cpp
Direct3D9_Basic/06_vertex_twisting/06_vertex_twisting_2003.vcproj
Direct3D9_Basic/06_vertex_twisting/06_vertex_twisting_2005.vcproj
Direct3D9_Basic/06_vertex_twisting/C2E2f_passthru.cg
Direct3D9_Basic/06_vertex_twisting/C3E4v_twist.cg
Direct3D9_Basic/07_two_texture_accesses/07_two_texture_accesses.cpp
Direct3D9_Basic/07_two_texture_accesses/07_two_texture_accesses_2003.vcproj
Direct3D9_Basic/07_two_texture_accesses/07_two_texture_accesses_2005.vcproj
Direct3D9_Basic/07_two_texture_accesses/C3E5v_twoTextures.cg
Direct3D9_Basic/07_two_texture_accesses/C3E6f_twoTextures.cg
Direct3D9_Basic/07_two_texture_accesses/demon_image.h
Direct3D9_Basic/Direct3D9_Basic_2003.sln
Direct3D9_Basic/Direct3D9_Basic_2005.sln
Direct3D9_Basic/miniDXUT/dxstdafx.cpp
Direct3D9_Basic/miniDXUT/dxstdafx.h
Direct3D9_Basic/miniDXUT/DXUT.cpp
Direct3D9_Basic/miniDXUT/DXUT.h
Direct3D9_Basic/miniDXUT/DXUTenum.cpp
Direct3D9_Basic/miniDXUT/DXUTenum.h
Direct3D9_Basic/miniDXUT/DXUTgui.cpp
Direct3D9_Basic/miniDXUT/DXUTgui.h
Direct3D9_Basic/miniDXUT/DXUTMesh.cpp
Direct3D9_Basic/miniDXUT/DXUTMesh.h
Direct3D9_Basic/miniDXUT/DXUTmisc.cpp
Direct3D9_Basic/miniDXUT/DXUTmisc.h
Direct3D9_Basic/miniDXUT/DXUTRes.cpp
Direct3D9_Basic/miniDXUT/DXUTRes.h
Direct3D9_Basic/miniDXUT/DXUTSettingsDlg.cpp
Direct3D9_Basic/miniDXUT/DXUTSettingsDlg.h
Direct3D9_Basic/miniDXUT/DXUTsound.cpp
Direct3D9_Basic/miniDXUT/DXUTsound.h
Direct3D9_Basic/miniDXUT/DXUT_2003.vcproj
Direct3D9_Basic/miniDXUT/DXUT_2005.vcproj
Direct3D9_Basic/miniDXUT/miniDXUT_2003.vcproj
Direct3D9_Basic/miniDXUT/miniDXUT_2005.vcproj
Direct3D9_Basic/miniDXUT/ReadMe.txt
Makefile
OpenGL_Advanced/cgfx_bumpdemo/brick_image.h
OpenGL_Advanced/cgfx_bumpdemo/bumpdemo.cgfx
OpenGL_Advanced/cgfx_bumpdemo/bumpdemo2.cgfx
OpenGL_Advanced/cgfx_bumpdemo/C8E4f_specSurf.cg
OpenGL_Advanced/cgfx_bumpdemo/C8E6v_torus.cg
OpenGL_Advanced/cgfx_bumpdemo/cgfx_bumpdemo.c
OpenGL_Advanced/cgfx_bumpdemo/cgfx_bumpdemo.dsp
OpenGL_Advanced/cgfx_bumpdemo/cgfx_bumpdemo.dsw
OpenGL_Advanced/cgfx_bumpdemo/cgfx_bumpdemo.mak
OpenGL_Advanced/cgfx_bumpdemo/cgfx_bumpdemo.sln
OpenGL_Advanced/cgfx_bumpdemo/cgfx_bumpdemo2.c
OpenGL_Advanced/cgfx_bumpdemo/cgfx_bumpdemo2.dsp
OpenGL_Advanced/cgfx_bumpdemo/cgfx_bumpdemo2.mak
OpenGL_Advanced/cgfx_bumpdemo/cgfx_bumpdemo2_2003.vcproj
OpenGL_Advanced/cgfx_bumpdemo/cgfx_bumpdemo2_2005.vcproj
OpenGL_Advanced/cgfx_bumpdemo/cgfx_bumpdemo_2003.vcproj
OpenGL_Advanced/cgfx_bumpdemo/cgfx_bumpdemo_2005.vcproj
OpenGL_Advanced/cgfx_bumpdemo/Makefile
OpenGL_Advanced/cgfx_bumpdemo/Makefile.nmake
OpenGL_Advanced/cgfx_bumpdemo/noBump.cg
OpenGL_Advanced/cgfx_bumpdemo/normcm_image.h
OpenGL_Advanced/cgfx_bumpdemo/ReadMe.txt
OpenGL_Advanced/cgfx_bumpdemo/specSurfNormalize.cg
OpenGL_Advanced/cgfx_bumpdemo/specSurfSelfShadow.cg
OpenGL_Advanced/cgfx_procfx/brick_image.h
OpenGL_Advanced/cgfx_procfx/bumpdemo.cgfx
OpenGL_Advanced/cgfx_procfx/bumpdemo2.cgfx
OpenGL_Advanced/cgfx_procfx/C8E4f_specSurf.cg
OpenGL_Advanced/cgfx_procfx/C8E6v_torus.cg
OpenGL_Advanced/cgfx_procfx/cgfx_dump.c
OpenGL_Advanced/cgfx_procfx/cgfx_dump.h
OpenGL_Advanced/cgfx_procfx/cgfx_procfx.c
OpenGL_Advanced/cgfx_procfx/cgfx_procfx.dsp
OpenGL_Advanced/cgfx_procfx/cgfx_procfx.sln
OpenGL_Advanced/cgfx_procfx/cgfx_procfx_2003.vcproj
OpenGL_Advanced/cgfx_procfx/cgfx_procfx_2005.vcproj
OpenGL_Advanced/cgfx_procfx/Makefile
OpenGL_Advanced/cgfx_procfx/normcm_image.h
OpenGL_Advanced/cgfx_procfx/ReadMe.txt
OpenGL_Advanced/Makefile
OpenGL_Advanced/OpenGL_Advanced.dsw
OpenGL_Advanced/OpenGL_Advanced_2003.sln
OpenGL_Advanced/OpenGL_Advanced_2005.sln
OpenGL_Basic/01_vertex_program/01_vertex_program.c
OpenGL_Basic/01_vertex_program/01_vertex_program.dsp
OpenGL_Basic/01_vertex_program/01_vertex_program_2003.vcproj
OpenGL_Basic/01_vertex_program/01_vertex_program_2003_x64.vcproj
OpenGL_Basic/01_vertex_program/01_vertex_program_2005.vcproj
OpenGL_Basic/01_vertex_program/C2E1v_green.cg
OpenGL_Basic/01_vertex_program/Makefile
OpenGL_Basic/02_vertex_and_fragment_program/02_vertex_and_fragment_program.c
OpenGL_Basic/02_vertex_and_fragment_program/02_vertex_and_fragment_program.dsp
OpenGL_Basic/02_vertex_and_fragment_program/02_vertex_and_fragment_program_2003.vcproj
OpenGL_Basic/02_vertex_and_fragment_program/02_vertex_and_fragment_program_2003_x64.vcproj
OpenGL_Basic/02_vertex_and_fragment_program/02_vertex_and_fragment_program_2005.vcproj
OpenGL_Basic/02_vertex_and_fragment_program/C2E1v_green.cg
OpenGL_Basic/02_vertex_and_fragment_program/C2E2f_passthru.cg
OpenGL_Basic/02_vertex_and_fragment_program/Makefile
OpenGL_Basic/03_uniform_parameter/03_uniform_parameter.c
OpenGL_Basic/03_uniform_parameter/03_uniform_parameter.dsp
OpenGL_Basic/03_uniform_parameter/03_uniform_parameter_2003.vcproj
OpenGL_Basic/03_uniform_parameter/03_uniform_parameter_2003_x64.vcproj
OpenGL_Basic/03_uniform_parameter/03_uniform_parameter_2005.vcproj
OpenGL_Basic/03_uniform_parameter/C2E2f_passthru.cg
OpenGL_Basic/03_uniform_parameter/C3E1v_anycolor.cg
OpenGL_Basic/03_uniform_parameter/Makefile
OpenGL_Basic/04_varying_parameter/04_varying_parameter.c
OpenGL_Basic/04_varying_parameter/04_varying_parameter.dsp
OpenGL_Basic/04_varying_parameter/04_varying_parameter_2003.vcproj
OpenGL_Basic/04_varying_parameter/04_varying_parameter_2003_x64.vcproj
OpenGL_Basic/04_varying_parameter/04_varying_parameter_2005.vcproj
OpenGL_Basic/04_varying_parameter/C2E2f_passthru.cg
OpenGL_Basic/04_varying_parameter/C3E2v_varying.cg
OpenGL_Basic/04_varying_parameter/Makefile
OpenGL_Basic/05_texture_sampling/05_texture_sampling.c
OpenGL_Basic/05_texture_sampling/05_texture_sampling.dsp
OpenGL_Basic/05_texture_sampling/05_texture_sampling_2003.vcproj
OpenGL_Basic/05_texture_sampling/05_texture_sampling_2003_x64.vcproj
OpenGL_Basic/05_texture_sampling/05_texture_sampling_2005.vcproj
OpenGL_Basic/05_texture_sampling/C3E2v_varying.cg
OpenGL_Basic/05_texture_sampling/C3E3f_texture.cg
OpenGL_Basic/05_texture_sampling/demon_image.h
OpenGL_Basic/05_texture_sampling/Makefile
OpenGL_Basic/06_vertex_twisting/06_vertex_twisting.c
OpenGL_Basic/06_vertex_twisting/06_vertex_twisting.dsp
OpenGL_Basic/06_vertex_twisting/06_vertex_twisting_2003.vcproj
OpenGL_Basic/06_vertex_twisting/06_vertex_twisting_2003_x64.vcproj
OpenGL_Basic/06_vertex_twisting/06_vertex_twisting_2005.vcproj
OpenGL_Basic/06_vertex_twisting/C2E2f_passthru.cg
OpenGL_Basic/06_vertex_twisting/C3E4v_twist.cg
OpenGL_Basic/06_vertex_twisting/Makefile
OpenGL_Basic/07_two_texture_accesses/07_two_texture_accesses.c
OpenGL_Basic/07_two_texture_accesses/07_two_texture_accesses.dsp
OpenGL_Basic/07_two_texture_accesses/07_two_texture_accesses_2003.vcproj
OpenGL_Basic/07_two_texture_accesses/07_two_texture_accesses_2003_x64.vcproj
OpenGL_Basic/07_two_texture_accesses/07_two_texture_accesses_2005.vcproj
OpenGL_Basic/07_two_texture_accesses/C3E5v_twoTextures.cg
OpenGL_Basic/07_two_texture_accesses/C3E6f_twoTextures.cg
OpenGL_Basic/07_two_texture_accesses/demon_image.h
OpenGL_Basic/07_two_texture_accesses/Makefile
OpenGL_Basic/08_vertex_transform/08_vertex_transform.c
OpenGL_Basic/08_vertex_transform/08_vertex_transform.dsp
OpenGL_Basic/08_vertex_transform/08_vertex_transform_2003.vcproj
OpenGL_Basic/08_vertex_transform/08_vertex_transform_2003_x64.vcproj
OpenGL_Basic/08_vertex_transform/08_vertex_transform_2005.vcproj
OpenGL_Basic/08_vertex_transform/C4E1v_transform.cg
OpenGL_Basic/08_vertex_transform/Makefile
OpenGL_Basic/09_vertex_lighting/09_vertex_lighting.c
OpenGL_Basic/09_vertex_lighting/09_vertex_lighting.dsp
OpenGL_Basic/09_vertex_lighting/09_vertex_lighting_2003.vcproj
OpenGL_Basic/09_vertex_lighting/09_vertex_lighting_2003_x64.vcproj
OpenGL_Basic/09_vertex_lighting/09_vertex_lighting_2005.vcproj
OpenGL_Basic/09_vertex_lighting/C5E1v_basicLight.cg
OpenGL_Basic/09_vertex_lighting/Makefile
OpenGL_Basic/10_fragment_lighting/10_fragment_lighting.c
OpenGL_Basic/10_fragment_lighting/10_fragment_lighting.dsp
OpenGL_Basic/10_fragment_lighting/10_fragment_lighting_2003.vcproj
OpenGL_Basic/10_fragment_lighting/10_fragment_lighting_2003_x64.vcproj
OpenGL_Basic/10_fragment_lighting/10_fragment_lighting_2005.vcproj
OpenGL_Basic/10_fragment_lighting/C5E2v_fragmentLighting.cg
OpenGL_Basic/10_fragment_lighting/C5E3f_basicLight.cg
OpenGL_Basic/10_fragment_lighting/Makefile
OpenGL_Basic/11_two_lights_with_structs/11_two_lights_with_structs.c
OpenGL_Basic/11_two_lights_with_structs/11_two_lights_with_structs.dsp
OpenGL_Basic/11_two_lights_with_structs/11_two_lights_with_structs_2003.vcproj
OpenGL_Basic/11_two_lights_with_structs/11_two_lights_with_structs_2003_x64.vcproj
OpenGL_Basic/11_two_lights_with_structs/11_two_lights_with_structs_2005.vcproj
OpenGL_Basic/11_two_lights_with_structs/C5E4v_twoLights.cg
OpenGL_Basic/11_two_lights_with_structs/Makefile
OpenGL_Basic/12_light_attenuation/12_light_attenuation.c
OpenGL_Basic/12_light_attenuation/12_light_attenuation.dsp
OpenGL_Basic/12_light_attenuation/12_light_attenuation_2003.vcproj
OpenGL_Basic/12_light_attenuation/12_light_attenuation_2003_x64.vcproj
OpenGL_Basic/12_light_attenuation/12_light_attenuation_2005.vcproj
OpenGL_Basic/12_light_attenuation/C5E2v_fragmentLighting.cg
OpenGL_Basic/12_light_attenuation/C5E7_attenuateLighting.cg
OpenGL_Basic/12_light_attenuation/Makefile
OpenGL_Basic/13_spotlight/13_spotlight.c
OpenGL_Basic/13_spotlight/13_spotlight.dsp
OpenGL_Basic/13_spotlight/13_spotlight_2003.vcproj
OpenGL_Basic/13_spotlight/13_spotlight_2003_x64.vcproj
OpenGL_Basic/13_spotlight/13_spotlight_2005.vcproj
OpenGL_Basic/13_spotlight/C5E10_spotAttenLighting.cg
OpenGL_Basic/13_spotlight/C5E2v_fragmentLighting.cg
OpenGL_Basic/13_spotlight/Makefile
OpenGL_Basic/14_bulge/14_bulge.c
OpenGL_Basic/14_bulge/14_bulge.dsp
OpenGL_Basic/14_bulge/14_bulge_2003.vcproj
OpenGL_Basic/14_bulge/14_bulge_2003_x64.vcproj
OpenGL_Basic/14_bulge/14_bulge_2005.vcproj
OpenGL_Basic/14_bulge/C6E1v_bulge.cg
OpenGL_Basic/14_bulge/Makefile
OpenGL_Basic/15_particle_system/C6E2v_particle.cg
OpenGL_Basic/15_particle_system/Makefile
OpenGL_Basic/16_keyframe_interpolation/C6E3v_keyFrame.cg
OpenGL_Basic/16_keyframe_interpolation/C6E4v_litKeyFrame.cg
OpenGL_Basic/16_keyframe_interpolation/Makefile
OpenGL_Basic/17_vertex_skinning/C6E5v_skin4m.cg
OpenGL_Basic/17_vertex_skinning/Makefile
OpenGL_Basic/18_cube_map_reflection/C7E1v_reflection.cg
OpenGL_Basic/18_cube_map_reflection/C7E2f_reflection.cg
OpenGL_Basic/18_cube_map_reflection/Makefile
OpenGL_Basic/19_cube_map_refraction/C7E3v_refraction.cg
OpenGL_Basic/19_cube_map_refraction/C7E4f_refraction.cg
OpenGL_Basic/19_cube_map_refraction/Makefile
OpenGL_Basic/20_chromatic_dispersion/C7E5v_dispersion.cg
OpenGL_Basic/20_chromatic_dispersion/C7E6f_dispersion.cg
OpenGL_Basic/20_chromatic_dispersion/Makefile
OpenGL_Basic/21_bump_map_wall/C8E1v_bumpWall.cg
OpenGL_Basic/21_bump_map_wall/C8E2f_bumpSurf.cg
OpenGL_Basic/21_bump_map_wall/Makefile
OpenGL_Basic/22_specular_bump_map/C8E3v_specWall.cg
OpenGL_Basic/22_specular_bump_map/C8E4f_specSurf.cg
OpenGL_Basic/22_specular_bump_map/Makefile
OpenGL_Basic/23_bump_map_floor/C8E2f_bumpSurf.cg
OpenGL_Basic/23_bump_map_floor/C8E5v_bumpAny.cg
OpenGL_Basic/23_bump_map_floor/Makefile
OpenGL_Basic/24_bump_map_torus/24_bump_map_torus.c
OpenGL_Basic/24_bump_map_torus/24_bump_map_torus.dsp
OpenGL_Basic/24_bump_map_torus/24_bump_map_torus_2003.vcproj
OpenGL_Basic/24_bump_map_torus/24_bump_map_torus_2003_x64.vcproj
OpenGL_Basic/24_bump_map_torus/24_bump_map_torus_2005.vcproj
OpenGL_Basic/24_bump_map_torus/brick_image.h
OpenGL_Basic/24_bump_map_torus/C8E4f_specSurf.cg
OpenGL_Basic/24_bump_map_torus/C8E6v_torus.cg
OpenGL_Basic/24_bump_map_torus/Makefile
OpenGL_Basic/24_bump_map_torus/normcm_image.h
OpenGL_Basic/25_uniform_fog/C9E1f_fog.cg
OpenGL_Basic/25_uniform_fog/C9E2v_fog.cg
OpenGL_Basic/25_uniform_fog/Makefile
OpenGL_Basic/26_toon_shading/C9E3v_toonShading.cg
OpenGL_Basic/26_toon_shading/C9E4f_toonShading.cg
OpenGL_Basic/26_toon_shading/Makefile
OpenGL_Basic/27_projective_texturing/C9E5v_projTex.cg
OpenGL_Basic/27_projective_texturing/C9E6f_projTex.cg
OpenGL_Basic/27_projective_texturing/Makefile
OpenGL_Basic/Makefile
OpenGL_Basic/OpenGL_Basic.dsw
OpenGL_Basic/OpenGL_Basic_2003.sln
OpenGL_Basic/OpenGL_Basic_2003_x64.sln
OpenGL_Basic/OpenGL_Basic_2005.sln
ReadMe.txt