提交 257024c4 编写于 作者: M Mr.doob

EffectComposer: Check if MaskPass is defined. Fixes #9042.

上级 c0616934
......@@ -91,13 +91,17 @@ Object.assign( THREE.EffectComposer.prototype, {
}
if ( pass instanceof THREE.MaskPass ) {
if ( THREE.MaskPass !== undefined ) {
maskActive = true;
if ( pass instanceof THREE.MaskPass ) {
} else if ( pass instanceof THREE.ClearMaskPass ) {
maskActive = true;
maskActive = false;
} else if ( pass instanceof THREE.ClearMaskPass ) {
maskActive = false;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册