浏览代码

ProgressiveLightMap: Fix uv regression. (#27692)

Michael Herzog 1 年之前
父节点
当前提交
ca69555211
共有 1 个文件被更改,包括 1 次插入0 次删除
  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 ) +