I am working on a lighting system for my game. Instead of lighting each tile completely with only one color, I want to create a gradient on that tile so to make the lighting look more dynamic and nicer.
I am using C# and Monogame (DirectX). Each tile is drawn as a
Texture2D with this call:
spriteBatch.Draw( Block.getBlockByID(blockID).getTexture(side), new Rectangle(x * 28 - offx, y * 28 - offy, 28, 28), color );
The first parameter gets the texture to use and the second one places the texture down. The third one is a pre-calculated
Color which shades the texture that color. How can I replace that
Color with a gradient?