Update jsCadController.ts

This commit is contained in:
Davor Hrg
2021-07-27 10:47:29 +02:00
parent 0b769a6524
commit 6e88e7030d

View File

@@ -5,11 +5,11 @@ import { MeshPhongMaterial, LineBasicMaterial, BufferGeometry , BufferAttribute,
const materials = {
mesh: {
def: new MeshPhongMaterial( { color: 0x0084d1, flatShading: true } ),
material: MeshPhongMaterial,
material: (params)=>new MeshPhongMaterial(params),
},
line: {
def: new LineBasicMaterial( { color: 0x0000ff } ),
material: LineBasicMaterial,
material: ({color,opacity,transparent})=>new LineBasicMaterial({color,opacity,transparent}),
},
lines:null
}