Added clamping to spotLight term in shaders.
This is necessary for OpenGL where pow(0,0) is undefined and can be negative (in DirectX you just get zero), leading to negative light creating black areas artefacts. Fixes #1805 and #2615 (related already fixed #998).
Showing
想要评论请 注册 或 登录