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