Skip to content

Add GLSL langauge hint before shader string literals - #416

Open
mrxz wants to merge 1 commit into
sparkjsdev:mainfrom
mrxz:glsl-language-hint
Open

Add GLSL langauge hint before shader string literals#416
mrxz wants to merge 1 commit into
sparkjsdev:mainfrom
mrxz:glsl-language-hint

Conversation

@mrxz

@mrxz mrxz commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

This PR prefixes all string/template literals containing GLSL code with a language hint (/* glsl */). IDEs can pick these up to provide syntax highlighting and other language features. Since it's effectively a normal comment block, this has no impact on IDEs without support for it.

FWIW, Three.js uses these as well in their code base. And since Spark has some large raw GLSL chunks throughout the code and examples, it doesn't hurt having syntax highlighting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant