cross-posted from: https://sh.itjust.works/post/37065945

This pull request fixes lighting/rendering/upscaling issues in games like Ghost in the Shell, Jak X -Mondern Combat Racing, Suikoden III, Time Crisis 3 and Drakengard among others.