Преглед изворни кода

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}; `;