Newer
Older
about-Leaflet / school+avater.html
<!DOCTYPE html>
<html lang="ja">
<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
    body {
        margin: 0;
        overflow: hidden;
    }
    </style>
</head>
<body>
    <div id="WebGL-output"></div>
    <script type="module">
    import * as THREE from "https://unpkg.com/three@0.126.1/build/three.module.js";
    import { PointerLockControls } from "https://unpkg.com/three@0.126.1/examples/jsm/controls/PointerLockControls.js";
    import { GLTFLoader } from "https://unpkg.com/three@0.126.1/examples/jsm/loaders/GLTFLoader.js";

    let camera, scene, renderer, controls;
    let moveForward = false, moveBackward = false, moveLeft = false, moveRight = false;
    let bChanLoaded = false, classroomModel, blackboardModel, bchanModel;

    function init() {
      scene = new THREE.Scene();
      scene.background = new THREE.Color(0xffffff);
    
      camera =