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.#168
Open
Classic0306 wants to merge 6 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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.
It makes me feel bad to keep others waiting so I want to submit this even if it is a bit incomplete still
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