mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-05 17:58:55 +00:00
fix ratio default to 3:2
This commit is contained in:
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";
|
||||
|
||||
+1
-1
@@ -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) => {
|
||||
|
||||
Reference in new issue
Block a user