Skip to content

Commit 4210ee8

Browse files
authored
TextureNode: Rename 'matrixValue' to matrixUniform (#28809)
1 parent 4441ded commit 4210ee8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/nodes/accessors/TextureNode.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class TextureNode extends UniformNode {
3232
this.referenceNode = null;
3333

3434
this._value = value;
35-
this._matrixValue = null;
35+
this._matrixUniform = null;
3636

3737
this.setUpdateMatrix( uvNode === null );
3838

@@ -102,9 +102,9 @@ class TextureNode extends UniformNode {
102102

103103
getTransformedUV( uvNode ) {
104104

105-
if ( this._matrixValue === null ) this._matrixValue = uniform( this.value.matrix );
105+
if ( this._matrixUniform === null ) this._matrixUniform = uniform( this.value.matrix );
106106

107-
return this._matrixValue.mul( vec3( uvNode, 1 ) ).xy;
107+
return this._matrixUniform.mul( vec3( uvNode, 1 ) ).xy;
108108

109109

110110
}
@@ -401,9 +401,9 @@ class TextureNode extends UniformNode {
401401
update() {
402402

403403
const texture = this.value;
404-
const matrixTexture = this._matrixValue;
404+
const matrixUniform = this._matrixUniform;
405405

406-
if ( matrixTexture !== null ) matrixTexture.value = texture.matrix;
406+
if ( matrixUniform !== null ) matrixUniform.value = texture.matrix;
407407

408408
if ( texture.matrixAutoUpdate === true ) {
409409

0 commit comments

Comments
 (0)