Browse Source

Change default splineTexture filtering to Linear for smoother path following. (#28375)

Michael Schlachter 1 year ago
parent
commit
0f4df91c94
1 changed files with 2 additions and 2 deletions
  1. 2 2
      examples/jsm/modifiers/CurveModifier.js

+ 2 - 2
examples/jsm/modifiers/CurveModifier.js

@@ -10,7 +10,7 @@ import {
 	RepeatWrapping,
 	Mesh,
 	InstancedMesh,
-	NearestFilter,
+	LinearFilter,
 	DynamicDrawUsage,
 	Matrix4
 } from 'three';
@@ -33,7 +33,7 @@ export function initSplineTexture( numberOfCurves = 1 ) {
 
 	dataTexture.wrapS = RepeatWrapping;
 	dataTexture.wrapY = RepeatWrapping;
-	dataTexture.magFilter = NearestFilter;
+	dataTexture.magFilter = LinearFilter;
 	dataTexture.needsUpdate = true;
 
 	return dataTexture;