瀏覽代碼

WebGLNodeBuilder: Support more than 4 UV layers (#26575)

sunag 2 年之前
父節點
當前提交
5105f243f5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder.js

+ 1 - 1
examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder.js

@@ -499,7 +499,7 @@ class WebGLNodeBuilder extends NodeBuilder {
 			for ( const attribute of attributes ) {
 
 				// ignore common attributes to prevent redefinitions
-				if ( /^(position|normal|uv\d?)$/.test( attribute.name ) )
+				if ( /^(position|normal|uv[1-3]?)$/.test( attribute.name ) )
 					continue;
 
 				snippet += `attribute ${attribute.type} ${attribute.name}; `;