Parcourir la source

Add to provide the needed code in the basic example

Ada Rose Cannon il y a 4 ans
Parent
commit
c35d3fff6e
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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;