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:
parent
d73cc3d0eb
commit
924d890bfe
3 changed files with 41 additions and 9 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue