perf improvements

This commit is contained in:
Wassim SAMAD
2026-05-13 09:05:09 -04:00
parent eeacae568c
commit 9de7a8ee77
10 changed files with 304 additions and 84 deletions
+3 -5
View File
@@ -1,13 +1,13 @@
import {
getMaterialPresetByRef,
resolveMaterial,
type MaterialMapProperties,
type MaterialPresetPayload,
type MaterialProperties,
type MaterialSchema,
resolveMaterial,
} from '@pascal-app/core'
import * as THREE from 'three'
import { MeshStandardNodeMaterial } from 'three/webgpu'
import { MeshLambertNodeMaterial, MeshStandardNodeMaterial } from 'three/webgpu'
export const baseMaterial = new MeshStandardNodeMaterial({
color: '#f2f0ed',
@@ -15,10 +15,8 @@ export const baseMaterial = new MeshStandardNodeMaterial({
metalness: 0.0,
})
export const glassMaterial = new MeshStandardNodeMaterial({
export const glassMaterial = new MeshLambertNodeMaterial({
color: '#e0f2fe',
roughness: 0.05,
metalness: 0.0,
transparent: true,
opacity: 0.35,
side: THREE.DoubleSide,