... | ... | @@ -50,4 +50,4 @@ The shaders have access to the following uniform variables: |
|
|
The default shaders are meant to be compatible with (desktop) OpenGL version 2.0. If you want best compatibility, you should probably write for GLSL version 1.10. Link to the specifications: https://www.khronos.org/registry/OpenGL/specs/gl/GLSLangSpec.1.10.pdf
|
|
|
Higher versions may work, depending on the user's GPU and drivers.
|
|
|
|
|
|
Any errors encountered during shader compilation and linking are reported by SRB2 to the console when loading the shader mod. However, just having the shader load succesfully on your machine unfortunately does **not** mean that it will also work on other machines! Some GPU drivers are less strict on following the GLSL standard and will allow minor discrepancies in the code without throwing an error. Therefore, to ensure compatibility across a wide variety of graphics processors (from NVIDIA, AMD, Intel etc.) I suggest you check your code using the OpenGL Reference Compiler found here: https://www.khronos.org/opengles/sdk/tools/Reference-Compiler/ |
|
|
Any errors encountered during shader compilation and linking are reported by SRB2 to the console when loading the shader mod. **However, just having the shader load succesfully on your machine unfortunately does not mean that it will also work on other machines!** Some GPU drivers are less strict on following the GLSL standard and will allow minor discrepancies in the code without throwing an error. Therefore, to ensure compatibility across a wide variety of graphics processors (from NVIDIA, AMD, Intel etc.) I suggest you check your code using the OpenGL Reference Compiler found here: https://www.khronos.org/opengles/sdk/tools/Reference-Compiler/ |