1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:07:35 +00:00

LibGL: SoftwareRasterizer: Use perspective correct interpolation

This commit is contained in:
Stephan Unverwerth 2021-05-11 19:25:17 +02:00 committed by Andreas Kling
parent 4b55aea307
commit b63b15eeb5
2 changed files with 23 additions and 14 deletions

View file

@ -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();