提交 9ea706e4 编写于 作者: S sunag

show only if mask is true

上级 8a1c6011
......@@ -168,7 +168,7 @@ PhongNode.prototype.build = function ( builder ) {
output.push(
mask.code,
'if ( ' + mask.result + ' ) discard;'
'if ( ! ' + mask.result + ' ) discard;'
);
}
......
......@@ -140,7 +140,7 @@ SpriteNode.prototype.build = function ( builder ) {
output.push(
mask.code,
'if ( ' + mask.result + ' ) discard;'
'if ( ! ' + mask.result + ' ) discard;'
);
}
......
......@@ -205,7 +205,7 @@ StandardNode.prototype.build = function ( builder ) {
output.push(
mask.code,
'if ( ' + mask.result + ' ) discard;'
'if ( ! ' + mask.result + ' ) discard;'
);
}
......
......@@ -1359,7 +1359,7 @@
mtl.mask = new THREE.CondNode(
texArea, // a: value
threshold, // b: value
THREE.CondNode.LESS // condition
THREE.CondNode.GREATER // condition
);
// GUI
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册