What glsl version should I use on a shader for mac?
I am working on a library thats uses a shader, works ok on Windows, but has compile errors on mac(tried El Capitan and High Sierra). A #version directive is required, nothing below 150 is supported, but 150 onwards you cant use “texture2D” as it should be changed to just “texture”. After changing it, any texture fetch throws an “unknown error” when compiling.
Maybe Processing is adding “uniform sampler2D texture” to the shader?