material.h 454 B

123456789101112131415161718192021
  1. #pragma once
  2. struct ICollection;
  3. struct Texture;
  4. struct Stack;
  5. struct Material {
  6. const struct Texture *base_texture[2];
  7. const struct Texture *bump;
  8. const struct Texture *detail;
  9. const struct Texture *envmap;
  10. /* TODO:
  11. * - bump
  12. * - detail
  13. * - texture transforms
  14. * - special material type (e.g. water, translucent, ...)
  15. * ...
  16. */
  17. };
  18. const struct Material *materialGet(const char *name, struct ICollection *collection, struct Stack *tmp);