How to use GLSL shader?
I notice the new version 4.1.0
Added GLSL shader support for FlxSprite, FlxTilemap, FlxBar and FlxBitmapText (#1848),
so i want to know how to use GLSL shader? Is it posseble to implement the 2D light?
I guess you can set the path to the shader to apply it.
Maybe like this:
sprite.shader = AssetPaths.lighting__glsl;
FlxBunnyMark has a shader example if compiled with
-Dnext(see the release blog post).