Explorar el Código

LottieLoader: Improved rendering on WebGL1.

Mr.doob hace 4 años
padre
commit
1096e8f8d8
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      examples/jsm/loaders/LottieLoader.js

+ 3 - 2
examples/jsm/loaders/LottieLoader.js

@@ -1,7 +1,8 @@
 import {
 	FileLoader,
 	Loader,
-	CanvasTexture
+	CanvasTexture,
+	NearestFilter
 } from "../../../build/three.module.js";
 
 var LottieLoader = function ( manager ) {
@@ -25,7 +26,7 @@ LottieLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 		const quality = this._quality || 1;
 
 		const texture = new CanvasTexture();
-		texture.anisotropy = 16;
+		texture.minFilter = NearestFilter;
 
 		const loader = new FileLoader( this.manager );
 		loader.setPath( this.path );