Skip to content

Combine OpenGL shaders into single .glsl file#687

Open
briaguya0 wants to merge 1 commit intoHarbourMasters:mainfrom
briaguya0:combine-opengl-shaders
Open

Combine OpenGL shaders into single .glsl file#687
briaguya0 wants to merge 1 commit intoHarbourMasters:mainfrom
briaguya0:combine-opengl-shaders

Conversation

@briaguya0
Copy link
Copy Markdown
Contributor

@briaguya0 briaguya0 commented Apr 17, 2026

Summary

  • Add PrismProcessor for Dynamic Shader Loading Kenix3/libultraship#972 changed the OpenGL backend to load a single combined default.shader.glsl instead of separate .fs and .vs files
  • The assets were never updated to match, breaking the OpenGL renderer
  • Combines default.shader.fs and default.shader.vs into default.shader.glsl using the @if(VERTEX_SHADER) / @else pattern that libultraship expects

Test plan

  • Build and run on Linux with OpenGL backend
  • Verify shaders load without errors
  • Regenerate spaghetti.o2r and confirm default.shader.glsl is present

🤖 Generated with Claude Code

Kenix3/libultraship#972 changed the OpenGL backend to load a single
combined default.shader.glsl instead of separate .fs and .vs files.
The assets were never updated to match, breaking the OpenGL renderer.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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