Cg has been superceeded by GLSL ( OpenGl, WebGl, Shadertoy ) and HLSL ( Direct3D)

Opis Główny program w C dla CPU, ładuje i uruchamia program w Cg dla GPU Lesson: 47 from NeHe ProductionsCg Bumpmapping by Razvan Surdulescu at GameDevCg & HLSL Shading Language FAQ (by Fusion Industries)

Pliki nagłówkowe

W głównym programie w C dodaj:http://http.developer.nvidia.com/CgTutorial/cg_tutorial_appendix_b.html NVidia Cg tutorial. Appendix B. The Cg Runtime #include /* To include the core Cg runtime API into your program */ #include /* to include the OpenGL-specific Cg runtime API */