Skip to content

Commit

Permalink
WebGPURenderer: Fix Geometry does not have the Attribute requested by…
Browse files Browse the repository at this point in the history
… the Material (#27454)

* WebGPURenderer: Fix Geometry does not have the Attribute

* cleanup
  • Loading branch information
sunag committed Dec 27, 2023
1 parent e852478 commit 00f29b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/jsm/renderers/common/RenderObject.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ export default class RenderObject {

const attribute = nodeAttribute.node && nodeAttribute.node.attribute ? nodeAttribute.node.attribute : geometry.getAttribute( nodeAttribute.name );

if ( attribute === undefined ) continue;

attributes.push( attribute );

const bufferAttribute = attribute.isInterleavedBufferAttribute ? attribute.data : attribute;
Expand Down

0 comments on commit 00f29b8

Please sign in to comment.