Skip to content

Commit

Permalink
#108 update the ambientLight color
Browse files Browse the repository at this point in the history
  • Loading branch information
Salam-Dalloul committed Oct 23, 2024
1 parent f899197 commit e4d939c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
LIGHT_2_COLOR,
LIGHT_2_POSITION,
LIGHT_SCENE_BACKGROUND,
LIGHT_1_COLOR
} from "../../../settings/threeDSettings.ts";
import DatasetPicker from "./DatasetPicker.tsx";
import Gizmo from "./Gizmo.tsx";
Expand Down Expand Up @@ -100,7 +101,7 @@ function ThreeDViewer() {
/>
<CameraControls ref={cameraControlRef} />

<ambientLight color={"0x404040"} />
<ambientLight color={LIGHT_1_COLOR} />
<directionalLight color={LIGHT_2_COLOR} position={LIGHT_2_POSITION} />

<Gizmo />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ export const CAMERA_POSITION = new Vector3(0, 0, 50);
export const CAMERA_NEAR = 0.1;
export const CAMERA_FAR = 2000;

export const LIGHT_1_COLOR = 0x404040;
export const LIGHT_2_COLOR = 0xccccff;
export const LIGHT_1_COLOR = "0x404040";
export const LIGHT_2_COLOR = "0xccccff";
export const LIGHT_2_POSITION = new Vector3(-1, 0.75, -0.5);

export const LIGHT_SCENE_BACKGROUND = "#f6f5f4";
Expand Down

0 comments on commit e4d939c

Please sign in to comment.