Can I use Cg开发者_JS百科 shader language with OpenGL ES 2.0?
I know that I can use GLSL with OpenGL ES 2.0 and Cg with OpenGL, but I wonder if there is Cg support for OpenGL ES.
I'm sure you've figured out the answer by now, but OpenGL ES 2.0 supports GLSL only. Furthermore, it uses a modified version of GLSL (precision modifiers being the most noticeable change) so Cg to GLSL conversion tools, such as those Nvidia supply, are unlikely to produce code you can just use. It should be very close though.
精彩评论