Skip to content

Commit

Permalink
TextureNode: Rename 'matrixValue' to matrixUniform (#28809)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunag authored Jul 4, 2024
1 parent 4441ded commit 4210ee8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/nodes/accessors/TextureNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class TextureNode extends UniformNode {
this.referenceNode = null;

this._value = value;
this._matrixValue = null;
this._matrixUniform = null;

this.setUpdateMatrix( uvNode === null );

Expand Down Expand Up @@ -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;


}
Expand Down Expand Up @@ -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 ) {

Expand Down

0 comments on commit 4210ee8

Please sign in to comment.