Shaders on Layers?

ozz

  • *
  • Posts: 575
I'm trying to add a negative saturation effect to the game when the menu is open, but there are some images that only work in normal saturation.  Is there a way to apply Shaders to Layers rather then the whole game or some other fix I haven't thought of?

« Last Edit: January 16, 2022, 05:54:52 am by ozz »

merrak

  • *
  • Posts: 2732
You should be able to accomplish this, but not with the native Stencyl blocks. OpenFL allows shaders on any sprite, which includes layers or even individual actors. Mdotedot has an actor layer extension on the forums that should have some examples, and maybe even some code you can use.

ozz

  • *
  • Posts: 575
Thank you Merrak, is this the add-on you meant?   If so it seems to be for Flash games, and I'm making  a game for Window/Mac.  Will that be a problem?

Edit: Also what about the 'Toggle shaders for HUD layer' block?  There isn't much documentation on how to use it?

« Last Edit: January 16, 2022, 07:10:58 am by ozz »