mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 08:02:39 +08:00
Unify color manipulation in ambient (#9359)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user