Explorar o código

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

NME: Fix redefinition of uniform when it is constant
David Catuhe %!s(int64=4) %!d(string=hai) anos
pai
achega
7e75df1ece
Modificáronse 1 ficheiros con 0 adicións e 8 borrados
  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");