three version:0.176.0
renderer:WebGPURenderer
I change the color of MeshBasicNodeMaterial or LineBasicNodeMaterial, and I already set needsUpdate to true,but the color not update sometimes unless I rotate the scene.
public showBoundaryWithColor(color: THREE.Color) {
if (this._blinkAnimation) {
this._blinkAnimation.kill();
this._blinkAnimation = null;
}
this.boxMat.color.copy(color);
this.boxMat.visible = true;
this.boxMat.opacity = 0.15;
this.material = this.boxMat;
this.material.needsUpdate = true;
this.edgesMaterial.color.copy(color);
this.edgesMaterial.visible = true;
this.edgesMaterial.opacity = 1;
this.edges.material = this.edgesMaterial;
this.edges.material.needsUpdate = true;
}
I record a mp4 below.