LightModelParameters.h 450 B

123456789101112131415161718192021
  1. /*
  2. * Copyright (c) 2022, Jesse Buhagiar <jooster669@gmail.com>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibGPU/Enums.h>
  8. #include <LibGfx/Vector4.h>
  9. namespace GPU {
  10. struct LightModelParameters {
  11. FloatVector4 scene_ambient_color { 0.2f, 0.2f, 0.2f, 1.0f };
  12. bool viewer_at_infinity { false };
  13. GPU::ColorControl color_control { GPU::ColorControl::SingleColor };
  14. bool two_sided_lighting { false };
  15. };
  16. }