Răsfoiți Sursa

Examples: More clean up. (#22880)

Michael Herzog 3 ani în urmă
părinte
comite
6a67d00f86

+ 1 - 3
examples/jsm/loaders/LogLuvLoader.js

@@ -115,7 +115,6 @@ UTIF.decodeImage = function ( buff, img, ifds ) {
 		var tx = Math.floor( ( img.width + tw - 1 ) / tw );
 		var ty = Math.floor( ( img.height + th - 1 ) / th );
 		var tbuff = new Uint8Array( Math.ceil( tw * th * bipp / 8 ) | 0 );
-		console.log( '====', tx, ty );
 		for ( var y = 0; y < ty; y ++ )
 			for ( var x = 0; x < tx; x ++ ) {
 
@@ -132,7 +131,6 @@ UTIF.decodeImage = function ( buff, img, ifds ) {
 	} else {
 
 		var rps = img[ 't278' ] ? img[ 't278' ][ 0 ] : img.height; rps = Math.min( rps, img.height );
-		console.log( '====', img.width, rps );
 		for ( var i = 0; i < soff.length; i ++ ) {
 
 			UTIF.decode._decompress( img, ifds, data, soff[ i ], bcnt[ i ], cmpr, bytes, Math.ceil( bilen / 8 ) | 0, fo );
@@ -152,7 +150,7 @@ UTIF.decode._decompress = function ( img, ifds, data, off, len, cmpr, tgt, toff
 
 	//console.log("compression", cmpr);
 	//var time = Date.now();
-	if ( false ) {} else if ( cmpr == 34676 ) UTIF.decode._decodeLogLuv32( img, data, off, len, tgt, toff );
+	if ( cmpr == 34676 ) UTIF.decode._decodeLogLuv32( img, data, off, len, tgt, toff );
 	else console.log( 'Unsupported compression', cmpr );
 
 	//console.log(Date.now()-time);

+ 0 - 1
examples/jsm/nodes/utils/ColorSpaceNode.js

@@ -9,7 +9,6 @@ import {
 } from '../../../../build/three.module.js';
 
 import { TempNode } from '../core/TempNode.js';
-import { ConstNode } from '../core/ConstNode.js';
 import { FloatNode } from '../inputs/FloatNode.js';
 import { FunctionNode } from '../core/FunctionNode.js';
 import { ExpressionNode } from '../core/ExpressionNode.js';