Skip to content

Commit

Permalink
Migrate built-in shaders to GLSL 3.0 when requested.
Browse files Browse the repository at this point in the history
  • Loading branch information
EliteMasterEric committed Jun 12, 2024
1 parent 00a45c8 commit 2b63379
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flixel/graphics/tile/FlxGraphicsShader.hx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class FlxGraphicsShader extends GraphicsShader
openfl_ColorOffsetv = colorOffset / 255.0;
openfl_ColorMultiplierv = colorMultiplier;
}
}")
}", true)
@:glFragmentHeader("
uniform bool hasTransform;
uniform bool hasColorTransform;
Expand Down Expand Up @@ -62,14 +62,14 @@ class FlxGraphicsShader extends GraphicsShader
}
return vec4(0.0, 0.0, 0.0, 0.0);
}
")
", true)
@:glFragmentSource("
#pragma header
void main(void)
{
gl_FragColor = flixel_texture2D(bitmap, openfl_TextureCoordv);
}")
}", true)
public function new()
{
super();
Expand Down

0 comments on commit 2b63379

Please sign in to comment.