Skip to content

Instantly share code, notes, and snippets.

@PabloAlexandre
Created February 6, 2022 08:50
Show Gist options
  • Select an option

  • Save PabloAlexandre/8763b148de89a54e7f9c569cefd4ac97 to your computer and use it in GitHub Desktop.

Select an option

Save PabloAlexandre/8763b148de89a54e7f9c569cefd4ac97 to your computer and use it in GitHub Desktop.
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