mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 22:52:22 +02:00
LibGL+LibSoftGPU: Add multiple texture coordinates to vertex struct
We now have one set of texture coordinates per texture unit. Texture coordinate generation and texture coordinate assignment is currently only stubbed. This will be rectified in another commit.
This commit is contained in:
committed by
Andreas Kling
parent
044582b0ce
commit
7571ef0343
Notes:
sideshowbarker
2024-07-17 20:39:11 +09:00
Author: https://github.com/sunverwerth Commit: https://github.com/SerenityOS/serenity/commit/7571ef0343e Pull-request: https://github.com/SerenityOS/serenity/pull/11927 Reviewed-by: https://github.com/IdanHo Reviewed-by: https://github.com/Quaker762 ✅ Reviewed-by: https://github.com/gmta ✅
@@ -615,7 +615,8 @@ void SoftwareGLContext::gl_vertex(GLdouble x, GLdouble y, GLdouble z, GLdouble w
|
||||
|
||||
vertex.position = { static_cast<float>(x), static_cast<float>(y), static_cast<float>(z), static_cast<float>(w) };
|
||||
vertex.color = m_current_vertex_color;
|
||||
vertex.tex_coord = m_current_vertex_tex_coord;
|
||||
for (size_t i = 0; i < m_device_info.num_texture_units; ++i)
|
||||
vertex.tex_coords[i] = m_current_vertex_tex_coord;
|
||||
vertex.normal = m_current_vertex_normal;
|
||||
|
||||
m_vertex_list.append(vertex);
|
||||
|
||||
Reference in New Issue
Block a user