three实现逼真内涵照片三维玻璃饰品小玩意代码

代码语言:html

所属分类:三维

代码描述:three实现逼真内涵照片三维玻璃饰品小玩意代码,可调节材质参数。

代码标签: three 逼真 内涵 照片 三维 玻璃 饰品 小玩意 代码

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

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

<head>
  <meta charset="UTF-8">
  

  
  
<style>
body { margin: 0; overflow: hidden; background-color: #050505; font-family: sans-serif; }

.lil-gui.root { position: absolute !important; bottom: 20px !important; right: 20px !important; top: auto !important; }
</style>



  
  
</head>

<body translate="no">
  <input type="file" id="fileInput" accept="image/*" style="display: none;">


    <script type="importmap">
        {
            "imports": {
                "three": "https://unpkg.com/three@0.170.0/build/three.module.js",
                "three/addons/": "https://unpkg.com/three@0.170.0/examples/jsm/",
                "lil-gui": "https://unpkg.com/three@0.170.0/examples/jsm/libs/lil-gui.module.min.js"
            }
        }
    </script>
  
    <script type="module">
import * as THREE from 'three';
import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
import { RoundedBoxGeometry } from 'three/addons/geometries/Rou.........完整代码请登录后点击上方下载按钮下载查看

网友评论0