Update color for nodes
This commit is contained in:
parent
5b754a4355
commit
48cf8ee564
|
@ -117,7 +117,7 @@ var initGraph = function () {
|
|||
|
||||
const color = colorAccessor(node);
|
||||
nodeMaterials[idx] = new THREE.MeshStandardMaterial({
|
||||
color: colorStr2Hex('#00ff00'),
|
||||
color: colorStr2Hex(color),
|
||||
transparent: false,
|
||||
opacity: 0.75
|
||||
});
|
||||
|
|
|
@ -116,7 +116,7 @@ var initGraph = function () {
|
|||
|
||||
const color = colorAccessor(node);
|
||||
nodeMaterials[idx] = new THREE.MeshStandardMaterial({
|
||||
color: colorStr2Hex('#00ff00'),
|
||||
color: colorStr2Hex(color),
|
||||
transparent: false,
|
||||
opacity: 0.75
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue