Ver Fonte

THREE.TGALoader bug fix.

takahiro há 9 anos atrás
pai
commit
9f51ce0f44
1 ficheiros alterados com 3 adições e 1 exclusões
  1. 3 1
      examples/js/loaders/TGALoader.js

+ 3 - 1
examples/js/loaders/TGALoader.js

@@ -477,7 +477,9 @@ THREE.TGALoader.prototype._parser = function ( buffer ) {
 	return {
 		width: header.width,
 		height: header.height,
-		data: rgbaData
+		data: rgbaData,
+		magFilter: THREE.NearestFilter,
+		minFilter: THREE.NearestFilter
 	};
 
 };