Skip to content

Conversation

orange-cpp
Copy link
Owner

Implements a function to generate a plane primitive from two vertices, a direction vector, and a size, returning an array of two triangles.

Implements a function to generate a plane primitive from two vertices, a direction vector, and a size, returning an array of two triangles.
Refactors the plane creation function to directly compute the triangle vertices, removing unnecessary intermediate variables. This results in more concise and readable code.
Corrects the order of vertices when constructing triangles
for the plane primitive, addressing a potential winding order
issue that could lead to incorrect surface normals and rendering.
@orange-cpp orange-cpp merged commit 89041e2 into main Aug 29, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant