From 21cad2253545c7433f862e871fbccd7fbd7485a2 Mon Sep 17 00:00:00 2001 From: Stephan Unverwerth Date: Thu, 6 Jan 2022 21:45:02 +0100 Subject: LibSoftGPU: Also interpolate normal during triangle clipping --- Userland/Libraries/LibSoftGPU/Clipper.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'Userland/Libraries/LibSoftGPU') 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; } -- cgit v1.2.3