提交 58ca27e0 编写于 作者: M Mr.doob

Fixed last saturare dependency.

上级 2d856c96
......@@ -65,7 +65,7 @@ vec3 calcCosineTerm( in vec3 normal, in vec3 lightDir ) {
#ifdef WRAP_AROUND
vec3 cosineTermHalf = vec3( saturate( 0.5 * dotProduct + 0.5 ) );
vec3 cosineTermHalf = vec3( clamp( 0.5 * dotProduct + 0.5, 0.0, 1.0 ) );
cosineTerm = mix( cosineTerm, cosineTermHalf, wrapRGB );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册