开发者

OpenGL-ES and Cg

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜