1
Shared Resources / Re: Shaders! Shaders galore! Shaders for all! (gif heavy)
« on: March 27, 2017, 08:09:12 am »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.