Skip to content

Commit

Permalink
added small ambient light
Browse files Browse the repository at this point in the history
  • Loading branch information
BarthPaleologue committed Aug 26, 2023
1 parent ed6c986 commit 9396edd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ts/controller/spaceEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import { Vector3 } from "@babylonjs/core/Maths/math";
import { setMaxLinVel } from "../utils/havok";
import { Animation } from "@babylonjs/core/Animations/animation";
import { Observable } from "@babylonjs/core/Misc/observable";
import { HemisphericLight } from "@babylonjs/core/Lights/hemisphericLight";

enum EngineState {
RUNNING,
Expand Down Expand Up @@ -191,6 +192,9 @@ export class SpaceEngine {
this.starSystemScene.clearColor = new Color4(0, 0, 0, 0);
this.starSystemScene.useRightHandedSystem = true;

const ambientLight = new HemisphericLight("ambientLight", Vector3.Zero(), this.starSystemScene);
ambientLight.intensity = 0.3;

this.starSystemUI = new SystemUI(this.starSystemScene);

this.havokPlugin = new HavokPlugin(true, havokInstance);
Expand Down

0 comments on commit 9396edd

Please sign in to comment.