Cg (C-for-graphics) is a generic shader language. 'Generic' is the key word here. Before Cg there were different languages for different platforms, e.g. OpenGL extensions and Direct3D pixel shaders, etc. But now you can write in Cg and the same code can be used on many platforms.
添加义项 CG 这是一个多义词，请在下列义项中选择浏览(共16个义项)： 展开