Untitled
unknown
javascript
4 years ago
711 B
5
Indexable
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>localhost</title> <style> body { margin: 0; } </style> </head> <body> <script type="module"> import * as THREE from '/javascript/three/build/three.module.js'; import { OBJLoader } from '/javascript/three/examples/jsm/loaders/OBJLoader.js'; const scene = new THREE.Scene(); const camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 0.1, 1000 ); const renderer = new THREE.WebGLRenderer({ antialias: true}); / instantiate a loader const loader = new OBJLoader(); </script> </body> </html>
Editor is loading...