1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 23:17:45 +00:00

LibGPU+LibSoftGPU: Move LightModelParameters into LibGPU

This commit is contained in:
Stephan Unverwerth 2022-03-27 15:32:40 +02:00 committed by Andreas Kling
parent 5a5596b381
commit 5bf224708f
3 changed files with 26 additions and 11 deletions

View file

@ -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 };
};
}