折叠 编辑本段 简介
折叠 编辑本段 英文介绍
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.