mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-18 00:09:44 +00:00
LibSoftGPU: Also interpolate normal during triangle clipping
This commit is contained in:
parent
941e9d9922
commit
21cad22535
Notes:
sideshowbarker
2024-07-17 21:19:09 +09:00
Author: https://github.com/sunverwerth
Commit: 21cad22535
Pull-request: https://github.com/SerenityOS/serenity/pull/11568
Reviewed-by: https://github.com/Hendiadyoin1 ✅
Reviewed-by: https://github.com/Quaker762 ✅
Reviewed-by: https://github.com/gmta
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue