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; }