From a2c545dfb9a92a687face8a971d9e30a7f0491fd Mon Sep 17 00:00:00 2001 From: crosstyan Date: Mon, 24 Mar 2025 16:47:26 +0800 Subject: [PATCH] Add default transformation matrix to Scene component for camera view. Include default camera view rendering alongside existing extrinsic matrices. --- src/App.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/App.tsx b/src/App.tsx index 992a971..607c290 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -12,6 +12,12 @@ const THREE_ADDONS = { } as const +const DEFAULT_TRANSFORMATION_MATRIX = [ + 1, 0, 0, 0, + 0, 1, 0, 0, + 0, 0, 1, 0, + 0, 0, 0, 1, +] const DEFAULT_NEAR = 0.05 const DEFAULT_FAR = 1 const CAMERA_EXTRINSIC_MATRIX_MAP: Record = { @@ -147,6 +153,7 @@ const Scene = () => { const far = (1 / fov_x) * 20 return })} + ) return (