Skip to content

Commit

Permalink
updtae it
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazyH2 committed Mar 21, 2024
1 parent b2472ab commit d254c53
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/screens/screenManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class ScreenManager {
};

renderScreen(screenGroup) {
this.root.scene.scene.background = new THREE.Color(0x000000);
this.root.scene.background = new THREE.Color(0x000000);

screenGroup.render(screenGroup.renderGroup);

Expand Down
2 changes: 2 additions & 0 deletions src/world/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ class Render {
constructor(top) {
this.top = top;

this.scene = new THREE.Scene();

this.ScreenManager = new ScreenManager(this);

this.render();
Expand Down
2 changes: 1 addition & 1 deletion src/world/scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Scene {
constructor(top) {
this.top = top;

this.scene = new THREE.Scene();
this.scene = this.top.scene;

this.main();
};
Expand Down

0 comments on commit d254c53

Please sign in to comment.