From 4210ee8bd04523c263be7a051d2bf7d148a5d064 Mon Sep 17 00:00:00 2001 From: sunag Date: Thu, 4 Jul 2024 15:55:06 -0300 Subject: [PATCH] TextureNode: Rename 'matrixValue' to `matrixUniform` (#28809) --- src/nodes/accessors/TextureNode.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/nodes/accessors/TextureNode.js b/src/nodes/accessors/TextureNode.js index 6b7baa2e5431b9..20654c6ef1992b 100644 --- a/src/nodes/accessors/TextureNode.js +++ b/src/nodes/accessors/TextureNode.js @@ -32,7 +32,7 @@ class TextureNode extends UniformNode { this.referenceNode = null; this._value = value; - this._matrixValue = null; + this._matrixUniform = null; this.setUpdateMatrix( uvNode === null ); @@ -102,9 +102,9 @@ class TextureNode extends UniformNode { getTransformedUV( uvNode ) { - if ( this._matrixValue === null ) this._matrixValue = uniform( this.value.matrix ); + if ( this._matrixUniform === null ) this._matrixUniform = uniform( this.value.matrix ); - return this._matrixValue.mul( vec3( uvNode, 1 ) ).xy; + return this._matrixUniform.mul( vec3( uvNode, 1 ) ).xy; } @@ -401,9 +401,9 @@ class TextureNode extends UniformNode { update() { const texture = this.value; - const matrixTexture = this._matrixValue; + const matrixUniform = this._matrixUniform; - if ( matrixTexture !== null ) matrixTexture.value = texture.matrix; + if ( matrixUniform !== null ) matrixUniform.value = texture.matrix; if ( texture.matrixAutoUpdate === true ) {