Skip to content

Shader includes#3374

Merged
IntegratedQuantum merged 3 commits into
PixelGuys:masterfrom
IntegratedQuantum:shader_include
Jul 17, 2026
Merged

Shader includes#3374
IntegratedQuantum merged 3 commits into
PixelGuys:masterfrom
IntegratedQuantum:shader_include

Conversation

@IntegratedQuantum

Copy link
Copy Markdown
Member

This is done in our code since OpenGL's driver support is rather lacking.
Also I found the required extension naming #extension GL_ARB_shading_language_include : require rather annoying which comes which comes with other parsers, so I omitted it here. Furthermore my VSCode extension for glsl does not properly support includes whether they have it or not.

Here I implemented includes for chunk data as an example.

fixes #105
required for #3335

@IntegratedQuantum

Copy link
Copy Markdown
Member Author

Ok, I managed to get the CI working, so that only leaves the poor usability in VSCode, but to be honest it's not much worse than status quo.

@IntegratedQuantum
IntegratedQuantum merged commit 1a9357a into PixelGuys:master Jul 17, 2026
1 check passed
@IntegratedQuantum
IntegratedQuantum deleted the shader_include branch July 17, 2026 19:41
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.

Add shader #include support

1 participant