Skip to content

Conversation

@themushroompirates
Copy link

When viewing certain examples, such as shaders, seeing the .c source code is all well and good, but the meat of it is in the shader files themselves.

This PR automatically scans the .c code for references to example shader files, loads them and displays a tab view for flipping between the C source and the shaders source(s). The shader source(s) are also formatted with highlight.js, using glsl formatting.

image

The CSS and JS are minimal, no additional dependencies added.

Currently it only loads the GLSL 330 versions; this could be modified in the future to allow the user to choose the version.

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