From 9b80a3feb6768f1b13085cc640361d637480491d Mon Sep 17 00:00:00 2001 From: Lily Date: Thu, 17 Oct 2024 15:56:46 +0300 Subject: [PATCH] wait that's for gles 3.0 --- source/funkin/backend/shaders/FunkinShader.hx | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/source/funkin/backend/shaders/FunkinShader.hx b/source/funkin/backend/shaders/FunkinShader.hx index 9b06cf13c..720a117d5 100644 --- a/source/funkin/backend/shaders/FunkinShader.hx +++ b/source/funkin/backend/shaders/FunkinShader.hx @@ -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;