There are situations where lights on the wrong side of a linedef may be passed and those need to be skipped in the shader code. (cherry picked from commit 3dc6ddbcc3)
3dc6ddbcc3