Fixes matrices computation. Only hdr/cubemap/shadow sample left to fix