<template>
<view class="content">
<view id="threeView"></view>
<!-- #ifdef APP-PLUS || H5 -->
<view id="three" class="three" @click="three.onClick"></view>
<!-- #endif -->
<!-- #ifndef APP-PLUS || H5 -->
<view>非 APP、H5 环境不支持</view>
<!-- #endif -->
</view>
</template>
<script>
export default {
data() {
return {
};
},
};
</script>
<script module="three" lang="renderjs">
const THREE = require('static/three/build/three.min.js')
import {
OrbitControls
} from 'static/three/examples/jsm/controls/OrbitControls.js'
import {
GLTFLoader
} from 'static/three/examples/jsm/loaders/GLTFLoader.js'
import {
RGBELoader
} from 'static/three/examples/jsm/loaders/RGBELoader.js';
const ThreeBSP = require('static/three/build/ThreeBSP.js')(THREE)
var renderer;
var scene, GLTFloader;
var camera;
var controls;
let pmrem
uniapp在手机端预览glb文件
于 2024-09-09 09:46:57 首次发布


1万+

被折叠的 条评论
为什么被折叠?



