浏览代码

TextureNode: Rename 'matrixValue' to `matrixUniform` (#28809)

sunag 1 年之前
父节点
当前提交
4210ee8bd0
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      src/nodes/accessors/TextureNode.js

+ 5 - 5
src/nodes/accessors/TextureNode.js

@@ -32,7 +32,7 @@ class TextureNode extends UniformNode {
 		this.referenceNode = null;
 		this.referenceNode = null;
 
 
 		this._value = value;
 		this._value = value;
-		this._matrixValue = null;
+		this._matrixUniform = null;
 
 
 		this.setUpdateMatrix( uvNode === null );
 		this.setUpdateMatrix( uvNode === null );
 
 
@@ -102,9 +102,9 @@ class TextureNode extends UniformNode {
 
 
 	getTransformedUV( uvNode ) {
 	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() {
 	update() {
 
 
 		const texture = this.value;
 		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 ) {
 		if ( texture.matrixAutoUpdate === true ) {