Unify color manipulation in ambient (#9359)

This commit is contained in:
pandamicro
2021-09-22 15:26:25 +08:00
committed by GitHub
parent 81fdaf346d
commit 4c17f85ced
+1 -1
View File
@@ -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;
}