开发者

OpenGL-ES and Cg

开发者 https://www.devze.com 2023-03-26 06:29 出处:网络
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 fig

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

精彩评论

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