Created
February 6, 2022 08:50
-
-
Save PabloAlexandre/8763b148de89a54e7f9c569cefd4ac97 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| const Scene = () => { | |
| const texture = useTexture(image); | |
| const camera = useThree(({ camera }) => camera); | |
| return ( | |
| <> | |
| <OrbitControls | |
| camera={camera} | |
| minZoom={1} | |
| maxZoom={1} | |
| /> | |
| <mesh scale={new Vector3(-1, 1, 1)}> | |
| <sphereBufferGeometry args={[500, 60, 40]} /> | |
| <meshBasicMaterial map={texture} side={DoubleSide} /> | |
| </mesh> | |
| </> | |
| ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment