-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e03e2c5
commit 09ac034
Showing
9 changed files
with
32,524 additions
and
16,430 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { Html, useProgress } from '@react-three/drei' | ||
import { useSnapshot } from 'valtio' | ||
import { state } from './store' | ||
|
||
function Loader() { | ||
const { progress } = useProgress() | ||
return <Html center>{progress} % loaded</Html> | ||
} | ||
export default function StaticImageSimulator() { | ||
const snap = useSnapshot(state) | ||
return ( | ||
<div | ||
className="bg_image" | ||
style={{ backgroundImage: `url(${process.env.PUBLIC_URL}/covisart/images/ngs/grey.webp)`, height: '90vh' }}> | ||
<img | ||
src={`/covisart/images/ngs/${snap.accessory}.webp`} | ||
className="bg_image" | ||
style={{ height: '84vh' }}/> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.