How to make shadows using a shader

Hi, I am making a 2D top down pixel art game and I want to use a shader to draw shadows that potentially can move around or be affected by light sources for the various objects on the map and I can’t find out how to do it. I have set up a pixel and vertex shader but can’t find out how to do anything else as I have found very little documentation on monogame shaders and can’t figure out how from looking at other types of shaders. If anyone knows how to do this or an easier method that doesn’t use shaders pls help.

Great news! There is a brand new tutorial on 2D shaders that covers shadows and lights. You can either wait a bit for it to be publicly released or become a MonoGame supporter on either Patreon or GitHub and access it now (early access for supporters) at sponsors.monogame.net

Thanks! I’ll check this when it becomes publicly avaliable

1 Like