Skip to content

Instantly share code, notes, and snippets.

@jasonsturges
Created December 11, 2020 04:16
Show Gist options
  • Save jasonsturges/51fa59be6c475e7909ea8186cc69222d to your computer and use it in GitHub Desktop.
Save jasonsturges/51fa59be6c475e7909ea8186cc69222d to your computer and use it in GitHub Desktop.
3D with Svelte and Three.js
<script>
import { onMount } from 'svelte';
import { createScene } from "./scene";
let el;
onMount(() => {
createScene(el)
});
</script>
<canvas bind:this={el}></canvas>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment