Skip to content

Commit

Permalink
no idea?
Browse files Browse the repository at this point in the history
  • Loading branch information
mcagabe19 authored Oct 29, 2024
1 parent c6e97a1 commit 04a5aba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/funkin/backend/shaders/FunkinShader.hx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import openfl.display.ShaderInput;
class FunkinShader extends FlxShader implements IHScriptCustomBehaviour {
private static var __instanceFields = Type.getInstanceFields(FunkinShader);

public var glslVer:String = #if lime_opengles "300 es" #else "120" #end;
public var glslVer:String = #if lime_opengles "100" #else "120" #end;

/**
* Creates a new shader from the specified fragment and vertex source.
Expand All @@ -34,7 +34,7 @@ class FunkinShader extends FlxShader implements IHScriptCustomBehaviour {
* @param vert Vertex source (pass `null` to use default)
* @param glslVer Version of GLSL to use (defaults to 120 at OpenGL, 300 es at OpenGL ES)
*/
public override function new(frag:String, vert:String, glslVer:String = #if lime_opengles "300 es" #else "120" #end) {
public override function new(frag:String, vert:String, glslVer:String = #if lime_opengles "100" #else "120" #end) {
if (frag == null) frag = ShaderTemplates.defaultFragmentSource;
if (vert == null) vert = ShaderTemplates.defaultVertexSource;
this.glFragmentSource = frag;
Expand Down

0 comments on commit 04a5aba

Please sign in to comment.