Skip to content

Commit

Permalink
wait that's for gles 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mcagabe19 committed Oct 17, 2024
1 parent 19cdac7 commit 9b80a3f
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions source/funkin/backend/shaders/FunkinShader.hx
Original file line number Diff line number Diff line change
Expand Up @@ -105,18 +105,8 @@ class FunkinShader extends FlxShader implements IHScriptCustomBehaviour {
+ "#endif\n\n";
#end

#if lime_opengles
prefix += 'out vec4 output_FragColor;\n';
var vertex = prefix
+ glVertexSource.replace("attribute", "in")
.replace("varying", "out")
.replace("texture2D", "texture")
.replace("gl_FragColor", "output_FragColor");
var fragment = prefix + glFragmentSource.replace("varying", "in").replace("texture2D", "texture").replace("gl_FragColor", "output_FragColor");
#else
var vertex = prefix + glVertexSource;
var fragment = prefix + glFragmentSource;
#end

var id = vertex + fragment;

Expand Down

0 comments on commit 9b80a3f

Please sign in to comment.