diff --git a/examples/jsm/nodes/accessors/UVNode.js b/examples/jsm/nodes/accessors/UVNode.js index 63c5d943545948..74b507e4a604de 100644 --- a/examples/jsm/nodes/accessors/UVNode.js +++ b/examples/jsm/nodes/accessors/UVNode.js @@ -18,7 +18,7 @@ class UVNode extends AttributeNode { const index = this.index; - return 'uv' + ( index > 0 ? index + 1 : '' ); + return 'uv' + ( index > 0 ? index : '' ); } diff --git a/examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder.js b/examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder.js index c964db64284c80..eb7698de6252fd 100644 --- a/examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder.js +++ b/examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder.js @@ -501,7 +501,7 @@ class WebGLNodeBuilder extends NodeBuilder { for ( const attribute of attributes ) { // ignore common attributes to prevent redefinitions - if ( attribute.name === 'uv' || attribute.name === 'position' || attribute.name === 'normal' ) + if ( /^(position|normal|uv\d?)$/.test( attribute.name ) ) continue; snippet += `attribute ${attribute.type} ${attribute.name}; `; diff --git a/playground/index.html b/playground/index.html index caf52018180e43..9f34831634ffa5 100644 --- a/playground/index.html +++ b/playground/index.html @@ -127,7 +127,6 @@ // renderer.setAnimationLoop( render ); - renderer.outputEncoding = THREE.sRGBEncoding; renderer.toneMapping = THREE.LinearToneMapping; renderer.toneMappingExposure = 1; document.body.appendChild( renderer.domElement );