Fixing dual sided lighting, improving performance by caching inverse