uv_pattern.h 585 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * DoRayMe - a quick and dirty Raytracer
  3. * UV Pattern header
  4. *
  5. * Created by Manoël Trapier
  6. * Copyright (c) 2020 986-Studio.
  7. *
  8. */
  9. #ifndef DORAYME_UV_PATTERN_H
  10. #define DORAYME_UV_PATTERN_H
  11. #include <colour.h>
  12. class UVPattern
  13. {
  14. public:
  15. Colour a;
  16. Colour b;
  17. double width;
  18. double height;
  19. UVPattern(double width, double height, Colour a, Colour b) : a(a), b(b),
  20. width(width), height(height) {};
  21. virtual Colour uvPatternAt(double u, double v) = 0;
  22. };
  23. #endif /* DORAYME_UV_PATTERN_H */