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:
parent
fd4d6b0031
commit
fef7f7159c
5 changed files with 76 additions and 60 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue