Skip to content

Commit

Permalink
enable glsl3 (when openfl does) (#3347)
Browse files Browse the repository at this point in the history
  • Loading branch information
Geokureli authored Jan 30, 2025
1 parent 5176066 commit 531a432
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions flixel/graphics/tile/FlxGraphicsShader.hx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class FlxGraphicsShader extends GraphicsShader
attribute vec4 colorMultiplier;
attribute vec4 colorOffset;
uniform bool hasColorTransform;
")
", true)
@:glVertexBody("
openfl_Alphav = openfl_Alpha * alpha;
Expand All @@ -26,7 +26,7 @@ class FlxGraphicsShader extends GraphicsShader
openfl_ColorMultiplierv = colorMultiplier;
}
}
")
", true)
@:glFragmentHeader("
uniform bool hasTransform; // TODO: Is this still needed? Apparently, yes!
uniform bool hasColorTransform;
Expand All @@ -53,10 +53,10 @@ class FlxGraphicsShader extends GraphicsShader
return color * openfl_Alphav;
}
")
", true)
@:glFragmentBody("
gl_FragColor = flixel_texture2D(bitmap, openfl_TextureCoordv);
")
", true)
public function new()
{
super();
Expand Down

0 comments on commit 531a432

Please sign in to comment.