vim-glsl
vim-glsl copied to clipboard
Use within javascript strings
Apologies if this is obvious or has been asked, but is it possible to use vim-glsl with shaders that are written as js or ts strings?
For example:
export const shader = /* glsl */ `
void main() {
gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0);
}`
I know that there is support for inlined html shaders but curious if that extends / can extend to other common shader locations. Thanks in advance!