Ver Fonte

ProgressiveLightMap: Fix uv regression. (#27692)

Michael Herzog há 1 ano atrás
pai
commit
ca69555211
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      examples/jsm/misc/ProgressiveLightMap.js

+ 1 - 0
examples/jsm/misc/ProgressiveLightMap.js

@@ -45,6 +45,7 @@ class ProgressiveLightMap {
 
 
 			// Vertex Shader: Set Vertex Positions to the Unwrapped UV Positions
 			// Vertex Shader: Set Vertex Positions to the Unwrapped UV Positions
 			shader.vertexShader =
 			shader.vertexShader =
+				'attribute vec2 uv1;\n' +
 				'#define USE_LIGHTMAP\n' +
 				'#define USE_LIGHTMAP\n' +
 				'#define LIGHTMAP_UV uv1\n' +
 				'#define LIGHTMAP_UV uv1\n' +
 				shader.vertexShader.slice( 0, - 1 ) +
 				shader.vertexShader.slice( 0, - 1 ) +