Bladeren bron

NodeMaterial: add logical operators to CondNode

Signed-off-by: martinRenou <[email protected]>
martinRenou 4 jaren geleden
bovenliggende
commit
8ef2a1645e
2 gewijzigde bestanden met toevoegingen van 4 en 0 verwijderingen
  1. 2 0
      examples/jsm/nodes/math/CondNode.d.ts
  2. 2 0
      examples/jsm/nodes/math/CondNode.js

+ 2 - 0
examples/jsm/nodes/math/CondNode.d.ts

@@ -22,5 +22,7 @@ export class CondNode extends TempNode {
 	static GREATER_EQUAL: string;
 	static LESS: string;
 	static LESS_EQUAL: string;
+	static AND: string;
+	static OR: string;
 
 }

+ 2 - 0
examples/jsm/nodes/math/CondNode.js

@@ -20,6 +20,8 @@ CondNode.GREATER = '>';
 CondNode.GREATER_EQUAL = '>=';
 CondNode.LESS = '<';
 CondNode.LESS_EQUAL = '<=';
+CondNode.AND = '&&';
+CondNode.OR = '||';
 
 CondNode.prototype = Object.create( TempNode.prototype );
 CondNode.prototype.constructor = CondNode;