2
0
Эх сурвалжийг харах

Proper attributeSize declaration in WebGLRenderers

zz85 12 жил өмнө
parent
commit
f9fe6da15d

+ 1 - 1
src/renderers/WebGLRenderer.js

@@ -3399,7 +3399,7 @@ THREE.WebGLRenderer = function ( parameters ) {
 		if ( material.visible === false ) return;
 
 		var program, programAttributes, linewidth, primitives, a, attribute, geometryAttributes;
-		var attributeItem, attributeName, attributePointer;
+		var attributeItem, attributeName, attributePointer, attributeSize;
 
 		program = setProgram( camera, lights, fog, material, object );
 

+ 1 - 1
src/renderers/WebGLRenderer2.js

@@ -631,7 +631,7 @@ THREE.WebGLRenderer = function ( parameters ) {
 		if ( material.visible === false ) return;
 
 		var program, programAttributes, linewidth, primitives, a, attribute, geometryAttributes;
-		var attributeItem, attributeName, attributePointer;
+		var attributeItem, attributeName, attributePointer, attributeSize;
 
 		program = setProgram( camera, lights, fog, material, object );