Skip to content

When using the WebGPU renderer, the second call to LineSegmentsGeometry.setPositions does not take effect #31056

Open
@jellychen

Description

@jellychen

Description

When using the WebGPU renderer, the second call to LineSegmentsGeometry.setPoints does not take effect

Reproduction steps

Add a line segment to the scene.

Code

// code goes here
const line = new LineSegments2();
line.geometry = new LineSegmentsGeometry();
line.material = new Line2NodeMaterial({....});
line.geometry.setPositions(points);

//
// render first
// everything is ok
//
render()

//
// set new positions
//
line.geometry.setPositions(points);

//
// render second
// new points is not be applyed????
//
render();

Live example

Screenshots

No response

Version

r175

Device

Desktop

Browser

Chrome

OS

MacOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions