阅读背景:

osgEarth中opengl版本的确定_hankern的专栏

来源:互联网 
osgEarth/VirtualProgram
#if defined(OSG_GLES2_AVAILABLE)
#    define GLSL_VERSION                 100
#    define GLSL_VERSION_STR             "100"
#    define GLSL_DEFAULT_PRECISION_FLOAT "precision highp float;"
#elif defined(OSG_GLES3_AVAILABLE)
#    define GLSL_VERSION                 300
#    define GLSL_VERSION_STR             "300 es"
#    define GLSL_DEFAULT_PRECISION_FLOAT "precision highp float;"
#elif defined(OSG_GL3_AVAILABLE)
#    define GLSL_VERSION                 330
#    define GLSL_VERSION_STR             "330"
#    define GLSL_DEFAULT_PRECISION_FLOAT ""
#else
#    define GLSL_VERSION                 330
#    define GLSL_VERSION_STR             "330 compatibility" 
#    define GLSL_DEFAULT_PRECISION_FLOAT ""
#endifosgEarth/VirtualProgram
#if defined(OSG_GLES2_A



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: