Explorar o código

Add to provide the needed code in the basic example

Ada Rose Cannon %!s(int64=4) %!d(string=hai) anos
pai
achega
c35d3fff6e
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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;