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 ""
#endif
osgEarth中opengl版本的确定
猜你喜欢
转载自blog.csdn.net/hankern/article/details/85316471
今日推荐
周排行