diff --git a/src/components/Avatar/Avatar.component.tsx b/src/components/Avatar/Avatar.component.tsx index 7a9ce21..ee47fbe 100644 --- a/src/components/Avatar/Avatar.component.tsx +++ b/src/components/Avatar/Avatar.component.tsx @@ -355,7 +355,9 @@ const Avatar: FC = ({ /> {AvatarModel} {children} - {shadows && } + {shadows && ( + + )} {background?.src && } {capture && } {background?.color && } diff --git a/src/components/BaseCanvas/BaseCanvas.component.tsx b/src/components/BaseCanvas/BaseCanvas.component.tsx index 510c817..ae3701c 100644 --- a/src/components/BaseCanvas/BaseCanvas.component.tsx +++ b/src/components/BaseCanvas/BaseCanvas.component.tsx @@ -41,7 +41,7 @@ export const BaseCanvas: FC = ({ dpr={dpr} camera={{ fov, position }} resize={{ scroll: true, debounce: { scroll: 50, resize: 0 } }} - style={{ ...style, background: 'transparent' }} + style={{ ...style, background: canvasConfig.alpha ? 'transparent' : style?.background }} > {children} diff --git a/src/components/Models/Model/Model.component.tsx b/src/components/Models/Model/Model.component.tsx index cc93746..3140a89 100644 --- a/src/components/Models/Model/Model.component.tsx +++ b/src/components/Models/Model/Model.component.tsx @@ -68,7 +68,6 @@ export const Model: FC = ({ if ((node as Mesh).isMesh) { node.castShadow = true; node.receiveShadow = true; - node.frustumCulled = false; } });