Shader Programming

Facts
From cg and HLSL FAQ: 1.1: What's the difference between nVidia's Cg and Microsoft's HLSL (High Level Shading Language)? A:   Cg and HLSL are actually the same language! Cg/HLSL was co-developed by nVidia and Microsoft. They have different names for branding purposes. HLSL is part of Microsoft's DirectX API and only compiles into DirectX code, while Cg can compile to DirectX and OpenGL.