LocalazyLocalazy
Cg (short for C for Graphics) is a high-level shading language developed by Nvidia in 2002. Cg was designed to be used with the C programming language and to facilitate the development of graphics applications. Cg programs are typically compiled to intermediate code, which is then passed to a graphics driver for execution on the GPU. Cg supports a number of different programming models, which can be used to produce different types of graphics effects. The Cg language has been used to develop a number of high-profile applications, including the Unity game engine and the Adobe Creative Suite.