Stencyl 3.4.0 is now out. Get it now!

Shaders! Shaders galore! Shaders for all! (gif heavy)

Eriko

  • Posts: 151
@laserhosen: I can't see the effect!

laserhosen

  • *
  • Posts: 21
@laserhosen: I can't see the effect!

Are you testing with Flash, HTML, or mobile? Shaders are for desktop only, so they only work with Windows or Mac apps.

@twotimingpete @LIBERADO I've looked into more realistic motion blur shaders and I think it's a bit beyond my abilities at the moment.

Eriko

  • Posts: 151
@laserhosen: I can't see the effect!

Are you testing with Flash, HTML, or mobile? Shaders are for desktop only, so they only work with Windows or Mac apps.

@twotimingpete @LIBERADO I've looked into more realistic motion blur shaders and I think it's a bit beyond my abilities at the moment.
Sorry, my bad. I missed that detail. I'm testing on Flash. I hope you can make it available for all platforms. Thank you and Happy New Year!

twotimingpete

  • *
  • Posts: 1666
@laserhosen: I can't see the effect!

Are you testing with Flash, HTML, or mobile? Shaders are for desktop only, so they only work with Windows or Mac apps.

@twotimingpete @LIBERADO I've looked into more realistic motion blur shaders and I think it's a bit beyond my abilities at the moment.

okay, thank you for trying! I appreciate it

twotimingpete

  • *
  • Posts: 1666
What are the chances a shader could be made that desaturates the screen but can exclude certain colors/color ranges?

Here's a quick and dirty photoshop example of what I'd like to be able to do -- I'd like to be able to turn down the saturation but exempt the pink/purple color range.

http://i.imgur.com/ciOgYQA.png top screenshot would be off, bottom screenshot would be with a lot of desaturation

How doable would this be?

laserhosen

  • *
  • Posts: 21
What are the chances a shader could be made that desaturates the screen but can exclude certain colors/color ranges?

Here's a quick and dirty photoshop example of what I'd like to be able to do -- I'd like to be able to turn down the saturation but exempt the pink/purple color range.

http://i.imgur.com/ciOgYQA.png top screenshot would be off, bottom screenshot would be with a lot of desaturation

How doable would this be?

This should be doable. It seems pretty straight forward. I can look into it later this week.

BMJ

  • *
  • Posts: 273
Thanks for these! Is it possible to combine these with other shaders? When I try to combine the Radial Blur shader with a saturation shader (or any other shader), all I get is a black screen. It may just be too much for my GPU (which isn't a very good one).

RemedySaveMe

  • Posts: 8
for some reason im just getting a black screen compiling for windows.. any idea for a solution?

squeeb

  • Posts: 1078
any way to apply shaders to actors only.. and not whole screen?

Justin

  • *
  • Posts: 3742
There will be in the next stencyl update.

For Live Support: Join our discord channel and ping me @justin.

squeeb

  • Posts: 1078
Heroes! Super excited!
Thank you for the response

twotimingpete

  • *
  • Posts: 1666
There will be in the next stencyl update.

what??

is it really happening???

cheeses christ

UnusualCadence

  • *
  • Posts: 133
Here's a Gameboy Color Palette shader. It limits the color palette to 4 user definable colors based on the original color's intensity. The RGB values of the 4 colors can be modified to create your own 4 color palette!



Hello! I've been using this shader as a base for my game's palette effects, but modified it to be 8 colours (and removed all the uniform variables). It's super slow on mobile though - it reduces the framerate to 35 from 60 on an iPhone 5! I don't know if you might have any ideas or tips on how to go about optimising this? It doesn't seem like it should be such a huge performance drain - but I don't know much about shaders!

Edit: Replaced a bunch of stuff with a simple if statement that checked each threshold and applied the correct colour.  Runs at 60fps on mobile now.

« Last Edit: March 28, 2017, 03:33:22 am by UnusualCadence »

c0rupt3d

  • Posts: 53
This is amazing thanks!