basic.go 350 B

12345678910111213141516171819
  1. // Copyright 2016 The G3N Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. package material
  5. import ()
  6. type Basic struct {
  7. Material // Embedded material
  8. }
  9. func NewBasic() *Basic {
  10. mb := new(Basic)
  11. mb.Material.Init()
  12. mb.SetShader("shaderBasic")
  13. return mb
  14. }