1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 20:37:36 +00:00

LibGL+LibSoftGPU: Implement eye, clip, NDC and window coordinates

This follows the OpenGL 1.5 spec much more closely. We need to store
the eye coordinates especially, since they are used in texture
coordinate generation and fog fragment depth calculation.
This commit is contained in:
Jelle Raaijmakers 2021-12-30 00:47:53 +01:00 committed by Andreas Kling
parent fd4d6b0031
commit fef7f7159c
5 changed files with 76 additions and 60 deletions

View file

@ -14,6 +14,9 @@ namespace SoftGPU {
struct Vertex {
FloatVector4 position;
FloatVector4 eye_coordinates;
FloatVector4 clip_coordinates;
FloatVector4 window_coordinates;
FloatVector4 color;
FloatVector4 tex_coord;
FloatVector3 normal;