# Color of MeshBasicNodeMaterial and LineBasicNodeMaterial is not update sometimes

**URL:** <https://discourse.threejs.org/t/color-of-meshbasicnodematerial-and-linebasicnodematerial-is-not-update-sometimes/81765>\
**Category:** Questions\
**Tags:** color, materials\
**Created:** [April 29, 2025, 7:01am UTC](https://discourse.threejs.org/t/color-of-meshbasicnodematerial-and-linebasicnodematerial-is-not-update-sometimes/81765 "2025-04-29T07:01:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andy\_Zheng](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/andy_zheng/32/48370_2.png) [@Andy\_Zheng](https://discourse.threejs.org/u/Andy_Zheng)\
**Post date:** [April 29, 2025, 7:01am UTC](https://discourse.threejs.org/t/color-of-meshbasicnodematerial-and-linebasicnodematerial-is-not-update-sometimes/81765/1 "2025-04-29T07:01:08Z")

</div>

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.

```javascript
    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.
