![]() So GL 4.1 uses GLSL 4.10.ĭirect3D Shader Model 4.0 is equivalent to GLSL version 3.30. Here's a table:įor all versions of OpenGL 3.3 and above, the corresponding GLSL version matches the OpenGL version. Until version 3.30, the GLSL version number and the corresponding OpenGL version number were different. ![]() GLSL versions went through some interesting number changes. The version is formatted as, where is a MAJOR.MINOR format, with an optional release number. Query the version of with glGetString(GL_SHADING_LANGUAGE_VERSION). It differs for different shading languages. ![]() However, if you must equate GL functionality with Direct3D Shader Model versions, here is how to do so. The OpenGL version number and the presence of extensions is a better test for what features are available on the hardware. OpenGL does not follow the Direct3D Shader Model format it has its own way to expose specific sets of functionality to the user.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |