提交 67e02f3f 编写于 作者: M Mr.doob

WebGLRenderer: Moved numClippingPlanes check. See discussion in...

WebGLRenderer: Moved numClippingPlanes check. See discussion in c4684612.
上级 7a0407fb
......@@ -1719,13 +1719,6 @@ function WebGLRenderer( parameters ) {
}
if ( materialProperties.numClippingPlanes !== undefined &&
materialProperties.numClippingPlanes !== _clipping.numPlanes ) {
material.needsUpdate = true;
}
}
if ( material.needsUpdate === false ) {
......@@ -1742,6 +1735,11 @@ function WebGLRenderer( parameters ) {
material.needsUpdate = true;
} else if ( materialProperties.numClippingPlanes !== undefined &&
materialProperties.numClippingPlanes !== _clipping.numPlanes ) {
material.needsUpdate = true;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册