fix ratio default to 3:2

This commit is contained in:
bflatastic committed 2025-04-03 12:40:34 +07:00
1 parent 7cf0363555
commit 6c0f547c65
4 files changed
+4 -4

No files matched your search

@@ -66,7 +66,7 @@ class Editor {
camera: THREE.PerspectiveCamera | null = null;
render_camera: THREE.PerspectiveCamera | null = null;
render_camera_aspect_ratio: CameraAspectRatio =
CameraAspectRatio.HORIZONTAL_16_9;
CameraAspectRatio.HORIZONTAL_3_2;
renderer: THREE.WebGLRenderer | undefined;
rawRenderer: THREE.WebGLRenderer | undefined;
clock: THREE.Clock | undefined;
@@ -86,7 +86,7 @@ export const Wizard = () => {
onNext: () => {
resetSceneGenerationMetadata();
editorEngine?.changeRenderCameraAspectRatio(
CameraAspectRatio.HORIZONTAL_16_9,
CameraAspectRatio.HORIZONTAL_3_2,
);
editorEngine?.newScene(textInput.value);
showWizard.value = "end";
@@ -67,7 +67,7 @@ export const ControlsTopButtons = () => {
const handleResetScene = () => {
resetSceneGenerationMetadata();
editorEngine?.changeRenderCameraAspectRatio(
CameraAspectRatio.HORIZONTAL_16_9,
CameraAspectRatio.HORIZONTAL_3_2,
);
};
@@ -4,7 +4,7 @@ import { CameraAspectRatio, EditorStates } from "~/pages/PageEnigma/enums";
export const editorState = signal<EditorStates>(EditorStates.EDIT);
export const cameraAspectRatio = signal<CameraAspectRatio>(
CameraAspectRatio.HORIZONTAL_16_9,
CameraAspectRatio.HORIZONTAL_3_2,
);
export const setCameraAspectRatio = (newAspectRatio: CameraAspectRatio) => {