0
votes

Recently I started OpenGL tutorials.

I use CLion as IDE. But it doesn't have native support of GLSL.

There is a CLion plugin called "GLSL support", which adds *.shader file association and shader language syntax highlight, which is pretty handy.

The problem is: in openGL tutorials shader files have extensions *.vertexshader / *.fragmentshader, which GLSL support plugin doesn't want to recognize.

Does anyone know how to add file associations for CLion GLSL support plugin? Or CLion extensions in general?

1

1 Answers

-2
votes

GLSL shaders can have any file extension you want, after all, you write the code that loads them! Quite often I name mine things like simple.vert, simple.frag or even just use .txt if I'm being lazy.

If you want Clion to pick them up just use .shader