Skip to main content
Deno 2 is finally here 🎉️
Learn more

three.js 4 deno

// main.ts
import { WebGLRenderer } from "https://deno.land/x/threejs_4_deno@v120/src/Three.js"
// and/or
import { OrbitalControls } from "https://deno.land/x/threejs_4_deno@v120/examples/jsm/controls/OrbitControls.js"

// use as per normal

To see your code in action in the browser:

deno bundle main.ts

and then include the outputed bundle within your html

<script type="module" src="bundle.main.js"></script>