mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 08:42:43 +08:00
add getter setter to skybox (#5778)
This commit is contained in:
@@ -267,11 +267,20 @@ cc.PlanarShadowInfo = PlanarShadowInfo;
|
||||
export class SceneGlobals {
|
||||
@property({ type: AmbientInfo })
|
||||
public ambient = new AmbientInfo();
|
||||
@property({ type: SkyboxInfo })
|
||||
public skybox = new SkyboxInfo();
|
||||
@property
|
||||
private _skybox = new SkyboxInfo();
|
||||
@property({ type: PlanarShadowInfo })
|
||||
public planarShadows = new PlanarShadowInfo();
|
||||
|
||||
@property({ type: SkyboxInfo })
|
||||
get skybox() {
|
||||
return this._skybox;
|
||||
}
|
||||
|
||||
set skybox(value) {
|
||||
this._skybox = value;
|
||||
}
|
||||
|
||||
set renderScene (rs: RenderScene) {
|
||||
this.ambient.renderScene = rs;
|
||||
this.skybox.renderScene = rs;
|
||||
|
||||
Reference in New Issue
Block a user