We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
compareNode
compareStepNode
1 parent 08ee34e commit 4f40b0aCopy full SHA for 4f40b0a
1 file changed
src/nodes/accessors/TextureNode.js
@@ -405,14 +405,18 @@ class TextureNode extends UniformNode {
405
406
} else {
407
408
- if ( this.value.compareFunction !== null && this.value.compareFunction !== LessCompare ) {
+ if ( this.value.compareFunction === null || this.value.compareFunction === LessCompare ) {
409
+
410
+ compareStepNode = this.compareNode;
411
412
+ } else {
413
414
+ compareNode = this.compareNode;
415
416
warnOnce( 'TSL: Only "LessCompare" is supported for depth texture comparison fallback.' );
417
418
}
419
- compareStepNode = this.compareNode;
-
420
421
422
0 commit comments