mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
fef7f7159c
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.
26 lines
509 B
C++
26 lines
509 B
C++
/*
|
|
* Copyright (c) 2021, Jesse Buhagiar <jooster669@gmail.com>
|
|
* Copyright (c) 2021, Stephan Unverwerth <s.unverwerth@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibGfx/Vector3.h>
|
|
#include <LibGfx/Vector4.h>
|
|
|
|
namespace SoftGPU {
|
|
|
|
struct Vertex {
|
|
FloatVector4 position;
|
|
FloatVector4 eye_coordinates;
|
|
FloatVector4 clip_coordinates;
|
|
FloatVector4 window_coordinates;
|
|
FloatVector4 color;
|
|
FloatVector4 tex_coord;
|
|
FloatVector3 normal;
|
|
};
|
|
|
|
}
|