Skip to content

Conversation

@cmhhelgeson
Copy link
Contributor

In the WebGPURenderer, Sprites can also take any class that extends SpriteNodeMaterial, as demonstrated by this example.

https://threejs.org/examples/?q=webgpu%20points#webgpu_instance_points

material = new THREE.PointsNodeMaterial( {

     colorNode: pointColors,
     opacityNode: shapeCircle(),
     positionNode: instancedBufferAttribute( positionAttribute ),
     // rotationNode: time,
     sizeNode: instancedBufferAttribute( instanceSizeBufferAttribute ),
     // size: 40, // in pixels units
     vertexColors: true,
     sizeAttenuation: false,
     alphaToCoverage: true

} );

const instancedPoints = new THREE.Sprite( material );

@cmhhelgeson
Copy link
Contributor Author

I thought this would be fixed by adding the proper JSDoc but it seems like SpriteNodeMaterial is still not referenced. I'm also not quite sure why the CI/test failed on nodes that weren't modified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant