vim-glsl icon indicating copy to clipboard operation
vim-glsl copied to clipboard

Use within javascript strings

Open theahura opened this issue 2 years ago • 0 comments

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!

theahura avatar Jan 09 '24 15:01 theahura