Skip to content

Add some shader related functions and add shader support for Modern OpenGL and flip the Y to match what GML shaders expect the Y coordinate to be and change texture settings and slightly change vertex format.#168

Open
Classic0306 wants to merge 11 commits into
ButterscotchRunner:mainfrom
Classic0306:opengl-shader-test

Conversation

@Classic0306
Copy link
Copy Markdown
Contributor

@Classic0306 Classic0306 commented May 27, 2026

adds: shader_set, shader_reset, shader_current, shader_get_uniform, shader_get_sampler_index, shader_set_uniform_f, sprite_get_uvs, texture_get_texel_width, texture_get_texel_height, texture_set_stage and font_get_uvs, shader_is_compiledm shader_get_name, shaders_are_supported

the Y coordinate for rendering (for both modern and legacy OpenGL, I didn't test legacy at all ngl) has been flipped to match what shaders expect, only MATRIX_WORLD_VIEW_PROJECTION has been made for the gm_Matrices built-in uniform for shaders.

I only tested DELTARUNE Chapter 3 and 4, tested Tenna's fight, tested Susiezilla and the ripple effect in Chapter 4 and a very tiny bit of the Second Sanctuary

@Classic0306 Classic0306 force-pushed the opengl-shader-test branch from 77ae692 to 971eb76 Compare June 4, 2026 15:52
@Classic0306 Classic0306 force-pushed the opengl-shader-test branch from 971eb76 to 9906639 Compare June 4, 2026 18:10
@Classic0306 Classic0306 changed the title Add some shader related functions and add shader support for Modern OpenGL and flip the Y to match what GML shaders expect the Y coordinate to be and change texture settings. Add some shader related functions and add shader support for Modern OpenGL and flip the Y to match what GML shaders expect the Y coordinate to be and change texture settings and slightly change vertex format. Jun 5, 2026
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