Browse Source

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

sunag 1 year ago
parent
commit
5105f243f5
1 changed files with 1 additions and 1 deletions
  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}; `;