Przeglądaj źródła

Proper attributeSize declaration in WebGLRenderers

zz85 12 lat temu
rodzic
commit
f9fe6da15d

+ 1 - 1
src/renderers/WebGLRenderer.js

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