Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. Cg or C for
Graphics is a high- level shading language developed by Nvidia in close
collaboration with Microsoft for programming vertex and pixel shaders.
It is very similar to Microsoft's HLSL. Cg is based on the C programming
language and although they share the same syntax, some features of C
were modified and new data types were added to make Cg more suitable for
programming graphics processing units.