I need to use functions such as textureSize() in my fragment shader, but they aren't available in GLSL 100, which is what PIXI defaults to. If I try to use them anyway i get an error:
"textureSize'": no matching overloaded function found
If I try to add #version 300 es to the top of my code (as some have recommended) then I get a new error:
'version' : #version directive must occur before anything else, except for comments and white space
The "full shader code" preview I am offered which accompanies the error is marked as having extra lines added by PIXI, which I can't remove.
I can't use the function I need in version 100, I can't change the version after the first line, and I can't change the first line.