mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-22 09:18:55 +00:00
LibGL: Make texture coordinates a FloatVector4
In OpenGL, texture coordinates can have up to 4 values. This change will help with easy application of texture coordinate matrix transformations in the future. Additionally, correct the initial value for texture coordinates to `{ 0.f, 0.f, 0.f, 1.f}`.
This commit is contained in:
parent
86b249f02f
commit
4703e8cbcf
Notes:
sideshowbarker
2024-07-17 22:28:34 +09:00
Author: https://github.com/gmta
Commit: 4703e8cbcf
Pull-request: https://github.com/SerenityOS/serenity/pull/11337
Reviewed-by: https://github.com/sunverwerth ✅
6 changed files with 6 additions and 6 deletions
|
@ -171,7 +171,7 @@ private:
|
|||
GLint m_clear_stencil { 0 };
|
||||
|
||||
FloatVector4 m_current_vertex_color = { 1.0f, 1.0f, 1.0f, 1.0f };
|
||||
FloatVector4 m_current_vertex_tex_coord = { 0.0f, 0.0f, 0.0f, 0.0f };
|
||||
FloatVector4 m_current_vertex_tex_coord = { 0.0f, 0.0f, 0.0f, 1.0f };
|
||||
FloatVector3 m_current_vertex_normal = { 0.0f, 0.0f, 1.0f };
|
||||
|
||||
Vector<GLVertex, 96> vertex_list;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue