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

Add to provide the needed code in the basic example

Ada Rose Cannon 4 жил өмнө
parent
commit
c35d3fff6e

+ 1 - 0
examples/jsm/modifiers/CurveModifier.js

@@ -119,6 +119,7 @@ export function modifyShader( material, uniforms, numberOfCurves = 1 ) {
 		Object.assign( shader.uniforms, uniforms );
 
 		const vertexShader = `
+		#define USE_ENVMAP
 		uniform sampler2D spineTexture;
 		uniform float pathOffset;
 		uniform float pathSegment;