I have a noise shader function that I’d like to include in my main vertex and fragment shader. I learnt that glsl doesnt have a file system comprehension, meaning i have to handle the includes externally and load all the shaders. In my main.h I have declared
ofShader shader; ofShader noise;
and in my main.cpp I have loaded them as such
shouldnt that be enough to include the noise functions in my shader ?
I have tried adding the GLB_ARB directive this way in my main shader, but couldn’t any explicit examples online,
#extension GL_ARB_shading_language_include : require #include noise
my noise shader and main shaders both start with #version 150
If you have any examples I could understand with, thanks a lot !