Versions of the OpenGL Shading Language back to version 1.40. TheĬore profile of OpenGL 4.5 is also guaranteed to support all previous The shading language may be queried as described in section 22.2. OpenGL 4.5 implementations are guaranteed to support version 4.50 of For example, in the OpenGL 4.5 core profile specification, the following is stated (emphasis mine): Note that besides being required to support the listed GLSL versions, GL implementations are also required to support older versions. If you request #version 100, you'll get GLSL 1.00 ES. However, that was never a core feature of OpenGL, so the version starts at 1.10 here (which is also the default if you don't have a #version directive in your shader). That was available when shaders were developed as an extension to GL 1.x. Also note that there is no explicit version 1.00. So, beginning with GL 3.3, the version numbers are "synced" to make life easier. In desktop GL, the mapping between the GL version and the GLSL version is as follows: GL version GLSL version
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |