mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:27:43 +00:00
LibGL: SoftwareRasterizer: Use perspective correct interpolation
This commit is contained in:
parent
4b55aea307
commit
b63b15eeb5
2 changed files with 23 additions and 14 deletions
|
@ -238,6 +238,7 @@ void SoftwareGLContext::gl_end()
|
|||
vec.set_x(vec.x() / vec.w());
|
||||
vec.set_y(vec.y() / vec.w());
|
||||
vec.set_z(vec.z() / vec.w());
|
||||
vec.set_w(1 / vec.w());
|
||||
}
|
||||
|
||||
vertex.x = vec.x();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue