MCPcopy
hub / github.com/g3n/engine / NewMaterial

Function NewMaterial

material/material.go:97–101  ·  view source on GitHub ↗

NewMaterial creates and returns a pointer to a new Material.

()

Source from the content-addressed store, hash-verified

95
96// NewMaterial creates and returns a pointer to a new Material.
97func NewMaterial() *Material {
98
99 mat := new(Material)
100 return mat.Init()
101}
102
103// Init initializes the material.
104func (mat *Material) Init() *Material {

Callers 1

InitializeMethod · 0.92

Calls 1

InitMethod · 0.45

Tested by

no test coverage detected