diff --git a/entry/src/main/ets/graphics3d/NodeLight.ets b/entry/src/main/ets/graphics3d/NodeLight.ets index d8bc355d330f0a098978a75534750d683be3708e..d9eaa7279cb7f33ef8c27a8a9512d640ff34d214 100644 --- a/entry/src/main/ets/graphics3d/NodeLight.ets +++ b/entry/src/main/ets/graphics3d/NodeLight.ets @@ -69,6 +69,7 @@ struct NodeLight { this.cam = await rf.createCamera({ 'name': 'Camera1' }); this.cam.position.z = Constants.CAMERA_POSITION_Z_INDEX; this.cam.enabled = true; + this.cam.clearColor = { r: 1, g: 1, b: 1, a: 1 }; // Camera look at direction. CalcUtils.lookAt(this.cam, { x: 10, y: 5, z: 15 }, { x: 0, y: 0.0, z: 0.0 }, { x: 0, y: 1, z: 0 });