I’m writting a glsl shader under a highly flexible and successful in my opinion library nvFX. But the usage of subroutines in this library is not complete , and in general as it turned out this possibility of a function
On my personal experience in adaptation glsl shaders to AMD. I wrote “adaptation”, because this process can not be called in another manner, after setting up under the NVidia card. 1) AMD does not like ARB_draw_buffers require flag in the
In the course of work with the GLSL shaders I have a few helpful notes on compatibility: 1) # version 120 – a string indicating the version of the shader should be the first in the code, otherwise ATI swears
At a ATI video cards shaders refuse to compile reference to this error. The reason – comments in Russian.
I have faced with such a feature of the GLSL compiler. If the variable is not used in the shader, then find its location there would be no possibility, it is simply truncated from the shader. The search function on