#1610·sokol

Customizing Sokol GL shader

Author: KTRosenbergCreated Sep 19, 2026Updated Sep 20, 2026

Would it be possible to add a simple way to override the shader embedded in somol_gl? For example, maybe create a section in the file that could allow a project to conditionally-include a different file in the same directly, like so:

#ifdef SOKOL_GL_SHADER_OVERRIDE #include “./override_shader.h” #else // existing pre-made code #endif