diff options
author | Jelle Raaijmakers <jelle@gmta.nl> | 2022-04-29 15:19:01 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-05-05 20:50:46 +0200 |
commit | a699e0a9d72a98232a3f3f9cb2d7224e2022df7c (patch) | |
tree | 09c83ab702ca9f9fa4921465db013da1cf2c99d6 /Userland/Libraries/LibSoftGPU/Device.cpp | |
parent | 526390ec061ce85db5873630ceb647f6d57be48a (diff) | |
download | serenity-a699e0a9d72a98232a3f3f9cb2d7224e2022df7c.zip |
LibSoftGPU: Remove initial fog factor value from Device
This value was always overwritten. No functional changes.
Diffstat (limited to 'Userland/Libraries/LibSoftGPU/Device.cpp')
-rw-r--r-- | Userland/Libraries/LibSoftGPU/Device.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibSoftGPU/Device.cpp b/Userland/Libraries/LibSoftGPU/Device.cpp index aac6ea231d..45d90a61a1 100644 --- a/Userland/Libraries/LibSoftGPU/Device.cpp +++ b/Userland/Libraries/LibSoftGPU/Device.cpp @@ -1010,7 +1010,7 @@ ALWAYS_INLINE void Device::shade_fragments(PixelQuad& quad) // FIXME: exponential fog is not vectorized, we should add a SIMD exp function that calculates an approximation. if (m_options.fog_enabled) { - auto factor = expand4(0.0f); + f32x4 factor; switch (m_options.fog_mode) { case GPU::FogMode::Linear: factor = (m_options.fog_end - quad.fog_depth) / (m_options.fog_end - m_options.fog_start); |