OpenGL支持的GLSL Versions版本对应
原文: https://github.com/mattdesl/lwjgl-basics/wiki/GLSL-Versions
GLSLVersions
OpenGL Version | GLSL Version |
2.0 | 110 |
2.1 | 120 |
3.0 | 130 |
3.1 | 140 |
3.2 | 150 |
3.3 | 330 |
4.0 | 400 |
4.1 | 410 |
4.2 | 420 |
4.3 | 430 |
GLSL ES Versions (Android, iOS, WebGL)
OpenGLES has its own Shading Language, and the versioning starts fresh. It is basedon OpenGL Shading Language version 1.10.
OpenGL ES Version | GLSL ES Version |
2.0 | 100 |
3.0 | 300 |
So,for example, if a feature is available in GLSL 120, it probably won't beavailable in GLSL ES 100 unless the ES compiler specifically allows it.
OpenGL ES版本列表
OpenGL ES版本号 | 对应OpenGL版本 | 对应的DX版本 | 版本特性 |
1.0 | OpenGL 1.3 | 低于DX9 | Fixed function rendering |
1.1 | OpenGL 1.5 | 低于DX9 | Fixed function rendering。虽然OpenGL 1.5中引入了ARB shader,但是OpenGL ES 1.1中仍然是不支持的。 |
2.0 | OpenGL 2.0 | DX9 | 支持GLSL |
3.0 | OpenGL 3.0 | DX10与DX9之间 | 兼容OpenGL ES 2.0,但不支持DX10中才有的Geometry Shader, OpenGL自3.2版本开始支持Geometry Shader. |