2
0
Эх сурвалжийг харах

LottieLoader: Improved rendering on WebGL1.

Mr.doob 4 жил өмнө
parent
commit
1096e8f8d8

+ 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 );