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:
parent
5a5596b381
commit
5bf224708f
3 changed files with 26 additions and 11 deletions
21
Userland/Libraries/LibGPU/LightModelParameters.h
Normal file
21
Userland/Libraries/LibGPU/LightModelParameters.h
Normal 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 };
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue