three实现三维电影院投影map效果代码

代码语言:html

所属分类:三维

代码描述:three实现三维电影院投影map效果代码

代码标签: three 三维 电影院 投影 map 代码

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  
  
  
<style>
html,
      body {
        margin: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        background: #101014;
      }

      #app {
        width: 100%;
        height: 100%;
      }

      #fallback {
        position: fixed;
        inset: 0;
        display: none;
        place-items: center;
        padding: 20px;
        color: #fff;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        background: #111;
        text-align: center;
        z-index: 100;
      }
</style>



  
  
</head>

<body translate="no">
  <div id="app"></div>
    <div id="fallback"></div>
 <script type="importmap">
      {
        "imports": {
          "three": "https://unpkg.com/three@0.166.1/build/three.module.js",
          "three/addons/": "https://unpkg.com/three@0.166.1/examples/jsm/"
        }
      }
    </script>
  
    <script type="module">
import * as THREE from "three";
import GUI from "https://unpkg.com/lil-gui@0.20.0/dist/lil-gui.esm.js";
import { EffectComposer } from "three/addons/postprocessing/EffectComposer.js";
import { RenderPass } from "three/addons/postprocessing/RenderPass.js";
import { UnrealBloomPass } from "three/addons/postprocessing/UnrealBlo.........完整代码请登录后点击上方下载按钮下载查看

网友评论0