WebGLDeferredRenderer: flipped light proxies faces orientation and depth test.
It makes lights work when the camera is inside the light volume and somehow it's also 10% faster. You just need to make sure camera far plane is far enough to encompass the whole light proxy, otherwise there are not lit slices of proxy sphere. (I don't really understand why flipping the depth test works, originally depth test was supposed to be just disabled) See #2624
Showing
想要评论请 注册 或 登录