Closed DaytonaJohn closed 6 years ago
It would be possible, but it would needlessly complicate the parsing grammar - and Kivy does not seem to be so widely used to be worth it. Additionally, if we ever get to it, it will mess up things like duplicate procedure/variable detection and other "smart" stuff.
I suspect that other GLSL editors will have the same problem, I'd try to persuade Kivy developers to make this prefix configurable, for example to something like: //---fragment
, so that it is still valid GLSL. (If they accept PR's you could even add it yourself, the relevant parsing logic seems to be here.)
I am using
Pycharm
to do someglsl
programming for Python/Kivy. The Kivy documentation states that:However, The plugin tags any such lines as errors. Would it be possible to have the plugin at least ignore such lines? Here is a sample
glsl
file that takes advantage of the Kivy capability: