Skip to content

Commit

Permalink
fix: image side
Browse files Browse the repository at this point in the history
  • Loading branch information
drcmda committed Dec 11, 2023
1 parent 6769989 commit 70428bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/Image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export type ImageProps = Omit<JSX.IntrinsicElements['mesh'], 'scale'> & {
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'] & {
Expand Down Expand Up @@ -98,6 +99,7 @@ const ImageBase: ForwardRefComponent<Omit<ImageProps, 'url'>, THREE.Mesh> = /* @
texture,
toneMapped,
transparent,
side,
...props
}: Omit<ImageProps, 'url'>,
ref: React.ForwardedRef<THREE.Mesh>
Expand All @@ -118,6 +120,7 @@ const ImageBase: ForwardRefComponent<Omit<ImageProps, 'url'>, THREE.Mesh> = /* @
imageBounds={imageBounds}
toneMapped={toneMapped}
transparent={transparent}
side={side}
/>
{children}
</mesh>
Expand Down

1 comment on commit 70428bd

@vercel
Copy link

@vercel vercel bot commented on 70428bd Dec 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.