From 3e082a772fa5c987821d8a0dfbccfbd48676ce89 Mon Sep 17 00:00:00 2001 From: Felix Erdmann Date: Tue, 12 Nov 2024 14:47:57 +0100 Subject: [PATCH] fix: remove outline --- src/scenes/bike/model/index.tsx | 37 ++++++++++------------- src/scenes/bike/model/utils/outline.tsx | 39 ------------------------- 2 files changed, 15 insertions(+), 61 deletions(-) delete mode 100644 src/scenes/bike/model/utils/outline.tsx diff --git a/src/scenes/bike/model/index.tsx b/src/scenes/bike/model/index.tsx index d48ab91..e8e0b87 100644 --- a/src/scenes/bike/model/index.tsx +++ b/src/scenes/bike/model/index.tsx @@ -17,7 +17,6 @@ import { Mcu } from "./mcu"; import { ToF } from "./tof"; import { Materials } from "./types/materials"; import { Nodes } from "./types/nodes"; -import { OutlineEffect } from "./utils/outline"; type ActionName = "open lid" | "explode tof" | "explode hdc"; interface GLTFAction extends THREE.AnimationClip { @@ -63,13 +62,11 @@ export function Model(props: JSX.IntrinsicElements["group"]) { userData={{ name: "BikeBox+Mini+S2 (1)" }} > - - toggleHdcAnimation()}> - - - - - + toggleHdcAnimation()}> + + + + @@ -77,22 +74,18 @@ export function Model(props: JSX.IntrinsicElements["group"]) { - - toggleTofAnimation()} - /> - + toggleTofAnimation()} + /> - - toggleLidAnimation()} - /> - + toggleLidAnimation()} + /> diff --git a/src/scenes/bike/model/utils/outline.tsx b/src/scenes/bike/model/utils/outline.tsx deleted file mode 100644 index c2972b7..0000000 --- a/src/scenes/bike/model/utils/outline.tsx +++ /dev/null @@ -1,39 +0,0 @@ -import { - EffectComposer, - Outline, - Select, - Selection, -} from "@react-three/postprocessing"; -import { KernelSize, BlendFunction, Resolution } from "postprocessing"; - -export const OutlineEffect = ({ - children, - enabled, - auraColor, -}: { - children: JSX.Element; - enabled: boolean; - auraColor: number; -}) => { - return ( - - - - - - - ); -};