mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
LibSoftGPU: Remove initial fog factor value from Device
This value was always overwritten. No functional changes.
This commit is contained in:
parent
526390ec06
commit
a699e0a9d7
Notes:
sideshowbarker
2024-07-17 18:49:10 +09:00
Author: https://github.com/gmta Commit: https://github.com/SerenityOS/serenity/commit/a699e0a9d7 Pull-request: https://github.com/SerenityOS/serenity/pull/13835 Reviewed-by: https://github.com/sunverwerth ✅
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue