1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:57:43 +00:00

LibGL: Implement fog effect in Software Rasterizer

We support three of the possible fog modes, EXP, EXP2 and LINEAR.
This commit is contained in:
Jesse Buhagiar 2021-08-25 18:10:44 +10:00 committed by Ali Mohammad Pur
parent d73cc3d0eb
commit 924d890bfe
3 changed files with 41 additions and 9 deletions

View file

@ -41,6 +41,9 @@ struct RasterizerOptions {
};
GLfloat fog_density { 1.0f };
GLenum fog_mode { GL_EXP };
GLboolean fog_enabled { false };
GLfloat fog_start { 0.0f };
GLfloat fog_end { 1.0f };
};
class SoftwareRasterizer final {