From 4c17f85cedf2b5ef8bf2ddf195516ea580a960a6 Mon Sep 17 00:00:00 2001 From: pandamicro Date: Wed, 22 Sep 2021 15:26:25 +0800 Subject: [PATCH] Unify color manipulation in ambient (#9359) --- cocos/core/renderer/scene/ambient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/core/renderer/scene/ambient.ts b/cocos/core/renderer/scene/ambient.ts index 3ac52fc1f0..b4e31a748b 100644 --- a/cocos/core/renderer/scene/ambient.ts +++ b/cocos/core/renderer/scene/ambient.ts @@ -94,7 +94,7 @@ export class Ambient { set groundAlbedo (color: Color) { this._groundAlbedo.set(color); - Vec3.toArray(this._albedoArray, this._groundAlbedo); + Color.toArray(this._albedoArray, this._groundAlbedo); if (JSB) { this._nativeObj!.groundAlbedo = this._groundAlbedo; }