In 2017 there was this thread where GLSL syntax highlighting was added, but today the highlighting on .glsl
files is almost nonexistent:
The only color distinction that I can see is for comments and operators, and even that is barely noticeable.
By contrast, this is how it looks in VSCode with the Shader Languages Support addon:
This properly highlights the types, function calls, and keywords. Can we get better support for GLSL on Glitch?
It would be extra helpful if highlighting could be supported in JS files with a prefix as in glsl-literal:
const shader = /* glsl */`
void foo() { ... }
`
// OR
import glsl from 'glslify'
const shader = glsl`
void foo() { ... }
`