Skip to content

Commit 4f40b0a

Browse files
authored
TextureNode: Use compareNode for Android if compareStepNode is not compatible (#32956)
1 parent 08ee34e commit 4f40b0a

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

src/nodes/accessors/TextureNode.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,14 +405,18 @@ class TextureNode extends UniformNode {
405405

406406
} else {
407407

408-
if ( this.value.compareFunction !== null && this.value.compareFunction !== LessCompare ) {
408+
if ( this.value.compareFunction === null || this.value.compareFunction === LessCompare ) {
409+
410+
compareStepNode = this.compareNode;
411+
412+
} else {
413+
414+
compareNode = this.compareNode;
409415

410416
warnOnce( 'TSL: Only "LessCompare" is supported for depth texture comparison fallback.' );
411417

412418
}
413419

414-
compareStepNode = this.compareNode;
415-
416420
}
417421

418422
}

0 commit comments

Comments
 (0)