Update jsCadController.ts
This commit is contained in:
@@ -5,11 +5,11 @@ import { MeshPhongMaterial, LineBasicMaterial, BufferGeometry , BufferAttribute,
|
|||||||
const materials = {
|
const materials = {
|
||||||
mesh: {
|
mesh: {
|
||||||
def: new MeshPhongMaterial( { color: 0x0084d1, flatShading: true } ),
|
def: new MeshPhongMaterial( { color: 0x0084d1, flatShading: true } ),
|
||||||
material: MeshPhongMaterial,
|
material: (params)=>new MeshPhongMaterial(params),
|
||||||
},
|
},
|
||||||
line: {
|
line: {
|
||||||
def: new LineBasicMaterial( { color: 0x0000ff } ),
|
def: new LineBasicMaterial( { color: 0x0000ff } ),
|
||||||
material: LineBasicMaterial,
|
material: ({color,opacity,transparent})=>new LineBasicMaterial({color,opacity,transparent}),
|
||||||
},
|
},
|
||||||
lines:null
|
lines:null
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user