Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ericjansenrpm committed Jul 16, 2024
1 parent 4992ed8 commit 4ac27a6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/App/App.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ function App() {
shadows
animationSrc="/male-idle-2.fbx"
style={{ background: 'rgb(9,20,26)' }}
onLoaded={() => console.log('female avatar loaded')}
fov={45}
effects={{
ambientOcclusion: true
Expand Down
6 changes: 3 additions & 3 deletions src/components/Avatar/Avatar.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ export const CAMERA = {
}
}
};
// prettier-ignore

export type Emotion = Record<string, number>;
// prettier-ignore

export interface AvatarProps extends LightingProps, EnvironmentProps, Omit<BaseModelProps, 'setModelFallback'> {
/**
* Arbitrary binary data (base64 string, Blob) of a `.glb` file or path (URL) to a `.glb` resource.
Expand Down Expand Up @@ -151,7 +151,7 @@ export interface AvatarProps extends LightingProps, EnvironmentProps, Omit<BaseM
* Interactive avatar presentation with zooming and horizontal rotation controls.
* Optimised for full-body and half-body avatars.
*/
// prettier-ignore

const Avatar: FC<AvatarProps> = ({
modelSrc,
animationSrc = undefined,
Expand Down
2 changes: 1 addition & 1 deletion src/components/BaseCanvas/BaseCanvas.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface BaseCanvasProps extends CameraProps {

const BASE_DPR = hasWindow ? window.devicePixelRatio : 1;

// prettier-ignore

export const BaseCanvas: FC<BaseCanvasProps> = (
{ children = undefined, fov = 50, position = new Vector3(0, 0, 5), style, dpr = [BASE_DPR * 0.5, 2], className }
) => (<Canvas
Expand Down
2 changes: 1 addition & 1 deletion src/components/Scene/Environment.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { environmentPresets, getPresetEnvironmentMap, EnvironmentPresets } from
export interface EnvironmentProps {
environment: string | EnvironmentPresets;
}
// prettier-ignore

export const Environment: FC<EnvironmentProps> = ({ environment }) => {
const config = useMemo<{ files: string }>(() => {
const isStaticPreset = environment in environmentPresets;
Expand Down

0 comments on commit 4ac27a6

Please sign in to comment.