mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 18:50:50 +00:00
LibGL: Implement glFogfv
This currently just sets the fog colour in the rasterizer.
This commit is contained in:
parent
ffa7da0ca5
commit
7f1cd54b80
Notes:
sideshowbarker
2024-07-18 05:18:04 +09:00
Author: https://github.com/Quaker762
Commit: 7f1cd54b80
Pull-request: https://github.com/SerenityOS/serenity/pull/9603
Reviewed-by: https://github.com/alimpfard ✅
7 changed files with 45 additions and 0 deletions
|
@ -33,6 +33,12 @@ struct RasterizerOptions {
|
|||
float depth_max { 1 };
|
||||
GLenum depth_func { GL_LESS };
|
||||
GLenum polygon_mode { GL_FILL };
|
||||
FloatVector4 fog_color {
|
||||
0.0f,
|
||||
0.0f,
|
||||
0.0f,
|
||||
0.0f,
|
||||
};
|
||||
};
|
||||
|
||||
class SoftwareRasterizer final {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue