diff options
author | Stephan Unverwerth <s.unverwerth@serenityos.org> | 2022-01-06 21:45:02 +0100 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2022-01-09 16:21:13 +0330 |
commit | 21cad2253545c7433f862e871fbccd7fbd7485a2 (patch) | |
tree | afdb792704e838e57192b0b81b5adbe910496371 | |
parent | 941e9d9922d8e613d83e5dfd75ebc4009bd65dfa (diff) | |
download | serenity-21cad2253545c7433f862e871fbccd7fbd7485a2.zip |
LibSoftGPU: Also interpolate normal during triangle clipping
-rw-r--r-- | Userland/Libraries/LibSoftGPU/Clipper.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibSoftGPU/Clipper.cpp b/Userland/Libraries/LibSoftGPU/Clipper.cpp index 6d982fff94..0b4405bd19 100644 --- a/Userland/Libraries/LibSoftGPU/Clipper.cpp +++ b/Userland/Libraries/LibSoftGPU/Clipper.cpp @@ -48,6 +48,7 @@ Vertex Clipper::clip_intersection_point(const Vertex& p1, const Vertex& p2, Clip out.clip_coordinates = mix(p1.clip_coordinates, p2.clip_coordinates, a); out.color = mix(p1.color, p2.color, a); out.tex_coord = mix(p1.tex_coord, p2.tex_coord, a); + out.normal = mix(p1.normal, p2.normal, a); return out; } |