Skip to content

Use within javascript strings #26

@theahura

Description

@theahura

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions