Browse Source

Add to provide the needed code in the basic example

Ada Rose Cannon 4 years ago
parent
commit
c35d3fff6e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      examples/jsm/modifiers/CurveModifier.js

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