Преглед на файлове

Merge pull request #9844 from Popov72/nme-fix-const-uniform

NME: Fix redefinition of uniform when it is constant
David Catuhe преди 4 години
родител
ревизия
7e75df1ece
променени са 1 файла, в които са добавени 0 реда и са изтрити 8 реда
  1. 0 8
      src/Materials/Node/Blocks/Dual/textureBlock.ts

+ 0 - 8
src/Materials/Node/Blocks/Dual/textureBlock.ts

@@ -286,14 +286,6 @@ export class TextureBlock extends NodeMaterialBlock {
         this._defineName = state._getFreeDefineName("UVTRANSFORM");
         this._mainUVDefineName = "VMAIN" + uvInput.associatedVariableName.toUpperCase();
 
-        if (uvInput.connectedPoint!.ownerBlock.isInput) {
-            let uvInputOwnerBlock = uvInput.connectedPoint!.ownerBlock as InputBlock;
-
-            if (!uvInputOwnerBlock.isAttribute) {
-                state._emitUniformFromString(uvInput.associatedVariableName, "vec2");
-            }
-        }
-
         this._mainUVName = "vMain" + uvInput.associatedVariableName;
         this._transformedUVName = state._getFreeVariableName("transformedUV");
         this._textureTransformName = state._getFreeVariableName("textureTransform");