Skip to content

Instantly share code, notes, and snippets.

@saschagehlich
Created June 17, 2020 14:08
Show Gist options
  • Save saschagehlich/186d20ce55d6ae83dc760d9dd4845bf8 to your computer and use it in GitHub Desktop.
Save saschagehlich/186d20ce55d6ae83dc760d9dd4845bf8 to your computer and use it in GitHub Desktop.
const RenderOutput = () => {
const { renderer, scene, camera } = useMemo(() => {
const renderer = new THREE.WebGLRenderer()
const scene = new THREE.Scene()
/* und so weiter... */
return { renderer, scene, camera }
}, [])
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment