Browse Source

ProgressiveLightMap: Fix uv regression. (#27692)

Michael Herzog 1 year ago
parent
commit
ca69555211
1 changed files with 1 additions and 0 deletions
  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
 			shader.vertexShader =
+				'attribute vec2 uv1;\n' +
 				'#define USE_LIGHTMAP\n' +
 				'#define LIGHTMAP_UV uv1\n' +
 				shader.vertexShader.slice( 0, - 1 ) +