Browse Source

unnecessary type

sunag 7 years ago
parent
commit
5d2e6aadfd
1 changed files with 4 additions and 4 deletions
  1. 4 4
      examples/js/loaders/sea3d/SEA3DDraco.js

+ 4 - 4
examples/js/loaders/sea3d/SEA3DDraco.js

@@ -79,15 +79,15 @@ SEA3D.GeometryDraco = function ( name, data, sea3d ) {
 
 	var index = 0;
 
-	this.vertex = this.readFloat32Array( module, decoder, mesh, index ++, module.POSITION );
+	this.vertex = this.readFloat32Array( module, decoder, mesh, index ++ );
 
-	if ( attrib & 4 ) this.normal = this.readFloat32Array( module, decoder, mesh, index ++, module.NORMAL );
+	if ( attrib & 4 ) this.normal = this.readFloat32Array( module, decoder, mesh, index ++ );
 
 	if ( attrib & 32 ) {
 
 		for ( i = 0; i < this.uv.length; i ++ ) {
 
-			this.uv[ i ] = this.readFloat32Array( module, decoder, mesh, index ++, module.TEX_COORD );
+			this.uv[ i ] = this.readFloat32Array( module, decoder, mesh, index ++ );
 
 		}
 
@@ -150,7 +150,7 @@ SEA3D.GeometryDraco.prototype.readIndices = function ( module, decoder, mesh ) {
 
 };
 
-SEA3D.GeometryDraco.prototype.readFloat32Array = function ( module, decoder, mesh, attrib, type ) {
+SEA3D.GeometryDraco.prototype.readFloat32Array = function ( module, decoder, mesh, attrib ) {
 
 	var attribute = decoder.GetAttribute( mesh, attrib ),
 		numPoints = mesh.num_points();