From 70428bdf50d643821de16598c2aa71c4236885cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=94?= Date: Mon, 11 Dec 2023 18:52:36 +0100 Subject: [PATCH] fix: image side --- src/core/Image.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/Image.tsx b/src/core/Image.tsx index 675cf209d..4f55561a6 100644 --- a/src/core/Image.tsx +++ b/src/core/Image.tsx @@ -15,6 +15,7 @@ export type ImageProps = Omit & { toneMapped?: boolean transparent?: boolean opacity?: number + side?: THREE.Side } & ({ texture: THREE.Texture; url?: never } | { texture?: never; url: string }) // {texture: THREE.Texture} XOR {url: string} type ImageMaterialType = JSX.IntrinsicElements['shaderMaterial'] & { @@ -98,6 +99,7 @@ const ImageBase: ForwardRefComponent, THREE.Mesh> = /* @ texture, toneMapped, transparent, + side, ...props }: Omit, ref: React.ForwardedRef @@ -118,6 +120,7 @@ const ImageBase: ForwardRefComponent, THREE.Mesh> = /* @ imageBounds={imageBounds} toneMapped={toneMapped} transparent={transparent} + side={side} /> {children}