add line opacity as an optional parameter
This commit is contained in:
parent
0b19a6c98f
commit
08add145c1
2 changed files with 5 additions and 5 deletions
|
|
@ -224,7 +224,7 @@
|
|||
newMat = createPhongMaterial;
|
||||
|
||||
function createLineMaterial(color, array) {
|
||||
const opacity = color.opacity || 1;
|
||||
const opacity = color.lopacity || color.opacity || 1;
|
||||
const mat = new THREE.LineBasicMaterial({
|
||||
transparent: true,
|
||||
opacity: opacity,
|
||||
|
|
|
|||
Loading…
Reference in a new issue