scoring system
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { TextureLoader, MeshStandardMaterial, MeshBasicMaterial, PlaneGeometry, Mesh } from "three";
|
||||
import { TextureLoader, MeshStandardMaterial, MeshBasicMaterial, PlaneGeometry, Mesh, DoubleSide } from "three";
|
||||
import { assignParams } from "@/lib/MeshUtils";
|
||||
|
||||
class ImageObject {
|
||||
@@ -7,7 +7,8 @@ class ImageObject {
|
||||
var t = await engine.loadTexture(obj.value, obj.path)
|
||||
var mp = {
|
||||
map: t,
|
||||
alphaTest: 0.5
|
||||
alphaTest: 0.5,
|
||||
side: DoubleSide
|
||||
};
|
||||
if (obj.nm) {
|
||||
mp.normalMap = new TextureLoader().setPath(obj.path).load(obj.nm);
|
||||
|
||||
Reference in New Issue
Block a user