• A
    Added clamping to specular term. · 51f45e8b
    alteredq 提交于
    This is necessary for OpenGL where pow(0,0) is undefined and apparently can be negative, leading to negative specular light (in DirectX you just get zero).
    51f45e8b
ShaderTerrain.js 8.4 KB