I've been struggling with this problem for a few weeks (mostly because I'm so new to shaders), but I have an angled camera for my 2D game that uses lights.
I saw this link about the '3D light simulation' and wondered how the shader responsible was written. I'm in Godot, which uses it's own shader language. I just need a way to compare the y-value's of the lightsource and the sprite. Any help would really be appreciated!