PostProcess not working with -Dnext ?
Looks like adding post processes isn't working when using
<set name="next" />in project.xml file. Other relevant settings in project.xml:
<window width="1600" height="900" fps="60" background="#000000" hardware="true" vsync="true" /> <window allow-shaders="true" require-shaders="true" if="cpp"/>
Code to add the shader:
shader = new PostProcess(AssetPaths.shader__glsl); FlxG.addPostProcess(shader);
This code works normally if using
-Dlegacy. Is this the intended behavior? If so, a warning should be sent when trying to use it with
-Dnext. If it should be working, what am i doing wrong?
As far as I know, PostProcess only works with Legacy. For Next, there's filters:
Thanks Gama, didn't know that!