The way I've done this is to make my UI and game content separate scenes, something like this:
class UIScene extends Scene {
var gameScene:GameScene;
public function new(g:GameScene) {
super();
gameScene = g;
bgAlpha = 0;
}
public function update() {
super.update();
if (!gamePaused) gameScene.update();
}
}
class GameScene extends Scene {
// ...
}
And to activate both:
var gameScene = new GameScene(),
uiScene = new UIScene(gameScene);
HXP.engine.pushScene(gameScene);
HXP.engine.pushScene(uiScene);
You can then apply shaders to either scene.