更新ARhit,完成场景添加南瓜灯和绘画等操作

This commit is contained in:
rucky
2021-10-28 17:51:08 +08:00
parent 24d78f8378
commit a8cca89108
8 changed files with 973 additions and 153 deletions

View File

@@ -83,7 +83,19 @@ module.exports = {
logged: true
})]
config.module.rules.push({
config.module.rules.push(
//模型加载
{
test: /\.(stl|obj|fbx|mtl|glb|gltf)?$/,
use: [
{
loader: 'file-loader', // 解决glsl 加载问题
options: {
name: './static/model/[name].[ext]'
}
}
]
}, {
test: /\.glsl$/,
use: [{
loader: 'webpack-glsl-loader', // 解决glsl 加载问题