Is there a way to apply a shader to an actor?

designpeg

  • *
  • Posts: 731
As per the title, is there a way to add a shader to an actor? Applying hue to an actor used to be pretty fast in the previous version of Stencyl, now it's unusably slow - I'm guessing it's because openFL got rid of hardware acceleration for this (that seems to be to blame for all the slow downs - like the drawing functions that are so much slower now).

I'm hoping it's possible to use the hue shader and that it's faster - but I need to be able to apply it to actors, not the whole screen.

squeeb

  • Posts: 1617
I was told many moons ago stencyl would have shaders for individual actors in 4.0... .... I don't think I seen them in there

merrak

  • *
  • Posts: 2724
I don't think there are blocks for the feature, but the OpenFL updates were supposed to make it possible.

Once I can move on from my GBJam game I'll look into making it an extension (unless someone else does first or it gets integrated in base Stencyl). It's something I'm definitely interested in using, too.

mdotedot

  • Posts: 1654
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.


designpeg

  • *
  • Posts: 731
Awesome mdotedot, now all I have to do is learn shaders!! Thanks.

designpeg

  • *
  • Posts: 731
Could anyone point me to a good resource to learn how to create shaders? All I really want to do is tint an image. (I know I can do this with the tint block - I already do this,  but i'm hoping a shader will  turn out to be faster/usable).