S
Sir_Rysik
Guest
Hey everyone,
I'm running into a problem in my game's design. The game itself is in a 2.5D perspective (Similar to Pokémon.) I wanted shadows to be under certain sprites but instead of doing do the cheap method of having a black shadow at 50% opacity I want the shadows to be directly influenced by my color palette. If you look at the example picture you can see that when the shadow is on top of something each color is brought down by one color in the palette (Making it darker.)
How would achieving this effect be possible?
I've never used shaders before so if a solution is possible without using them then I would be glad to try it out. Otherwise I wouldn't mind trying to figure out how to use them.
I had the idea of having all of the shadows in each sprite be a certain shade of Purple at 100/255 opacity. Then I would run some sort of shader that takes the (transparent purple color + whatever color is under it = New shadow color)
Thanks in advance!