By sampling the light's depth map, and comparing the depth with the current fragment's view space depth, we can calculate the occlusion of a given fragment. This is all done in the deferred pass. I also made it react to cloud shadows.
#gamemaker
#shaders
#3d
#pixelart