AtomLinter / linter-glsl

Atom package that lints GLSL shaders on the fly.
https://atom.io/packages/linter-glsl
MIT License
15 stars 6 forks source link

Support headers #40

Open dapetcu21 opened 8 years ago

dapetcu21 commented 8 years ago

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.