更新ARhit,完成场景添加南瓜灯和绘画等操作
This commit is contained in:
@@ -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 加载问题
|
||||
|
||||
Reference in New Issue
Block a user