A language plugin for IntelliJ IDEA that provides basic support for GLSL language.
Current features:
- Syntax highlighting
- Grammar checking
- Support for all basic GLSL constructs, including structs and GLSL ES precision statements
- Basic support for preprocessor statements
Original code made by Yngve Devik Hammersland and Jean-Paul Balabanian.
Originally hosted on https://code.google.com/p/glsl4idea/
Changes made with permissions from original authors by Jan Polák (Darkyen).
Licensed under GNU LGPL, see license file.
- Get the plugin
- From Jetbrains repo and skip step 2
- Or from releases
- Or compile it yourself (see -Development-)
- Install plugin (Tested on IntelliJ CE 14, similar versions may work) (Preferences -> Plugins -> Install plugin from disk)
- Create .glsl file and enjoy
- Clone (or download) this repository
- Create Intellij project in this directory with Plugin module (Make sure you have official Plugin DevKit installed)
- Easiest way might be to first create an empty project in
glsl4idea
folder and then create a Intellij Platform Plugin module from same folder
- File -> Project Structure -> Modules -> Right-click the
resources
directory -> Mark as Resources - Build -> Prepare plugin for deployment -> You will be notified with plugin jar path
To test changes, there are some testing files in testfiles
directory.
You can also test on piglit, run DownloadPiglit.sh
to download
and sort shaders for testing.