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

LibSoftGPU: Remove OpenGL type for fog mode

Replaces the GLenum used to set up the fog mode in RasterizerOptions
with out own enum.
This commit is contained in:
Stephan Unverwerth 2021-12-22 23:44:29 +01:00 committed by Brian Gianforcaro
parent 74ed7713fa
commit f4d29bf665
3 changed files with 21 additions and 5 deletions

View file

@ -62,6 +62,12 @@ enum class DepthTestFunction {
Greater,
};
enum FogMode {
Linear,
Exp,
Exp2
};
enum class WindingOrder {
Clockwise,
CounterClockwise,
@ -84,7 +90,7 @@ struct RasterizerOptions {
GLenum polygon_mode { GL_FILL };
FloatVector4 fog_color { 0.0f, 0.0f, 0.0f, 0.0f };
float fog_density { 1.0f };
GLenum fog_mode { GL_EXP };
FogMode fog_mode { FogMode::Exp };
bool fog_enabled { false };
float fog_start { 0.0f };
float fog_end { 1.0f };