mirror of
https://github.com/status-im/whispervis.git
synced 2025-02-08 11:23:53 +00:00
Improve materials
This commit is contained in:
parent
912b03c409
commit
d788cbb49d
@ -34,9 +34,9 @@ func NewBlinkedNodeMaterial() three.Material {
|
|||||||
// NewEdgeMaterial creates a new default material for the graph edge lines.
|
// NewEdgeMaterial creates a new default material for the graph edge lines.
|
||||||
func NewEdgeMaterial() three.Material {
|
func NewEdgeMaterial() three.Material {
|
||||||
params := three.NewMaterialParameters()
|
params := three.NewMaterialParameters()
|
||||||
params.Color = three.NewColorRGB(200, 200, 255)
|
params.Color = three.NewColorHex(0xf0f0f0)
|
||||||
params.Transparent = false
|
params.Transparent = true
|
||||||
params.Opacity = DefaultTransparency
|
params.Opacity = 0.7
|
||||||
return three.NewLineBasicMaterial(params)
|
return three.NewLineBasicMaterial(params)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user