remove deprecated gl_FragColor
api that made compiling impossible
#82
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.
Changed shader code to remove deprecated
gl_FragColor
apiThe changes made to the code are intended to fix a bug that was causing the following error messages to occur:
Summary of all the changes
The
simple_color.frag
,simple_epic.frag
,simple_image.frag
, andsimple_text.frag
files all underwent similar changes:The API used to declare the output color variable
gl_FragColor
was deprecated, and the new API requires the use of anout
variable.Thus, the
out
variablesFragColor
andout_color
were declared in the modified files to replace the deprecatedgl_FragColor
.These changes ensure that the output color variables are properly declared and can be used in the code without throwing any errors.
Additionally, in the
simple_epic.frag
file, thefrag_uv
variable was modified to use theout_uv
variable instead ofgl_FragCoord.xy / resolution
.This change was made because
gl_FragCoord.xy / resolution
is deprecated in newer versions of OpenGL and may not be supported in future versions.Using
out_uv
ensures that the code is compatible with current and future versions of OpenGL.