diff options
author | Stephan Unverwerth <s.unverwerth@serenityos.org> | 2022-03-27 15:32:40 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-04-06 11:32:24 +0200 |
commit | 5bf224708ff7ef0166153ef0f94ec15f4e95f232 (patch) | |
tree | 33d0c9d0a4b32cc0ef89ab7069a3bdef81acfa0f /Userland/Libraries/LibGPU | |
parent | 5a5596b381c8ecf257aa0b41bab21d26c6d86986 (diff) | |
download | serenity-5bf224708ff7ef0166153ef0f94ec15f4e95f232.zip |
LibGPU+LibSoftGPU: Move LightModelParameters into LibGPU
Diffstat (limited to 'Userland/Libraries/LibGPU')
-rw-r--r-- | Userland/Libraries/LibGPU/LightModelParameters.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGPU/LightModelParameters.h b/Userland/Libraries/LibGPU/LightModelParameters.h new file mode 100644 index 0000000000..344b9a2af1 --- /dev/null +++ b/Userland/Libraries/LibGPU/LightModelParameters.h @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2022, Jesse Buhagiar <jooster669@gmail.com> + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#pragma once + +#include <LibGPU/Enums.h> +#include <LibGfx/Vector4.h> + +namespace GPU { + +struct LightModelParameters { + FloatVector4 scene_ambient_color { 0.2f, 0.2f, 0.2f, 1.0f }; + bool viewer_at_infinity { false }; + GPU::ColorControl color_control { GPU::ColorControl::SingleColor }; + bool two_sided_lighting { false }; +}; + +} |