Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exposing sky properties fixes #5904

Merged
merged 11 commits into from
Dec 19, 2023
1 change: 1 addition & 0 deletions src/scene/skybox/sky.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class Sky {


applySettings(render) {
this.type = render.skyType ?? this.type;
kpal81xd marked this conversation as resolved.
Show resolved Hide resolved
this.node.setLocalPosition(new Vec3(render.skyMeshPosition ?? [0, 0, 0]));
this.node.setLocalEulerAngles(new Vec3(render.skyMeshRotation ?? [0, 0, 0]));
this.node.setLocalScale(new Vec3(render.skyMeshScale ?? [1, 1, 1]));
Expand Down