basic.go 446 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. // Basic is a simple material that uses the 'basic' shader
  6. type Basic struct {
  7. Material // Embedded material
  8. }
  9. // NewBasic returns a pointer to a new Basic material
  10. func NewBasic() *Basic {
  11. mb := new(Basic)
  12. mb.Material.Init()
  13. mb.SetShader("basic")
  14. return mb
  15. }