scoring system

This commit is contained in:
2025-11-12 07:27:42 +02:00
parent b1312d9b54
commit 2a1423877b
5 changed files with 31 additions and 12 deletions
@@ -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);