loading progress added
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { BoxGeometry, Mesh, MeshBasicMaterial, Group } from 'three';
|
||||
import { BoxGeometry, Mesh, MeshStandardMaterial, Group } from 'three';
|
||||
import { MotionEngine } from '../../lib/MotionEngine';
|
||||
import { centerOrigin } from '@/lib/MeshUtils';
|
||||
|
||||
@@ -13,8 +13,10 @@ class PuzzleGame1 {
|
||||
|
||||
let bm = new BoxGeometry(1, 1, 1);
|
||||
|
||||
let material = new MeshBasicMaterial({
|
||||
map: await engine.loadTexture(data.$go.asset.name)
|
||||
let material = new MeshStandardMaterial({
|
||||
map: await engine.loadTexture(data.$go.asset.name),
|
||||
// roughness:1, metalness:0,
|
||||
// normalMap: await engine.loadTexture('NormalMap.png', '/static/textures/'),
|
||||
});
|
||||
//material.map.encoding = sRGBEncoding;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user