mirror of
https://github.com/status-im/whispervis.git
synced 2025-02-02 08:25:06 +00:00
18 lines
544 B
Go
18 lines
544 B
Go
|
package main
|
||
|
|
||
|
import "github.com/lngramos/three"
|
||
|
|
||
|
// NewNodeMaterial creates a new default material for the graph node lines.
|
||
|
func NewNodeMaterial() three.Material {
|
||
|
params := three.NewMaterialParameters()
|
||
|
params.Color = three.NewColor(0, 255, 0)
|
||
|
return three.NewMeshPhongMaterial(params)
|
||
|
}
|
||
|
|
||
|
// NewEdgeMaterial creates a new default material for the graph edge lines.
|
||
|
func NewEdgeMatherial() three.Material {
|
||
|
params := three.NewMaterialParameters()
|
||
|
params.Color = three.NewColor(200, 200, 255)
|
||
|
return three.NewLineBasicMaterial(params)
|
||
|
}
|