Some game engines (I'm mostly talking about cocos2d) implicitly define a bunch of variables and extension directives at the top, before the user's shader code. As a result, the linter throws undefined variable errors.
It would be useful to have a way to configure headers for each type of shader that would get concatenated with the shader before being sent to the linter.
Preferably, it'd be nice if this could be done on per-project basis.
Some game engines (I'm mostly talking about cocos2d) implicitly define a bunch of variables and extension directives at the top, before the user's shader code. As a result, the linter throws undefined variable errors.
It would be useful to have a way to configure headers for each type of shader that would get concatenated with the shader before being sent to the linter.
Preferably, it'd be nice if this could be done on per-project basis.