diff --git a/.storybook/stories/ContactShadows.stories.tsx b/.storybook/stories/ContactShadows.stories.tsx index ebeaa8f4f..73d468d0c 100644 --- a/.storybook/stories/ContactShadows.stories.tsx +++ b/.storybook/stories/ContactShadows.stories.tsx @@ -24,14 +24,14 @@ function ContactShadowScene({ colorized }: any) { - + diff --git a/src/core/ContactShadows.tsx b/src/core/ContactShadows.tsx index ae0245991..0b181d42f 100644 --- a/src/core/ContactShadows.tsx +++ b/src/core/ContactShadows.tsx @@ -43,9 +43,6 @@ export const ContactShadows = React.forwardRef( const scene = useThree((state) => state.scene) const gl = useThree((state) => state.gl) const shadowCamera = React.useRef(null!) - const { position } = props - const shadowCameraZ = - typeof position === 'number' ? position : Array.isArray(position) ? position[1] : position?.y || 0 width = width * (Array.isArray(scale) ? scale[0] : scale || 1) height = height * (Array.isArray(scale) ? scale[1] : scale || 1) @@ -152,11 +149,7 @@ export const ContactShadows = React.forwardRef( - + ) }