WebGLDeferredRenderer: refactored spotlights.
Moved view space light direction and position computations out of the shader. These are constant for every pixel affected by the light, so computation can be done just once per light in JS and then passed in as uniform.
Showing
想要评论请 注册 或 登录