Created
June 17, 2020 14:08
-
-
Save saschagehlich/186d20ce55d6ae83dc760d9dd4845bf8 to your computer and use it in GitHub Desktop.
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
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