1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:57:44 +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

@ -545,6 +545,10 @@ void SoftwareGLContext::gl_enable(GLenum capability)
rasterizer_options.enable_alpha_test = true;
update_rasterizer_options = true;
break;
case GL_FOG:
rasterizer_options.fog_enabled = true;
update_rasterizer_options = true;
break;
default:
RETURN_WITH_ERROR_IF(true, GL_INVALID_ENUM);
}