16 std::vector<Vertex>
gen_quad_vertices(
const float width,
const float height,
float depth)
noexcept
18 depth = std::clamp(depth, -1.0f, 1.0f);
24 .m_pos = glm::vec3 {0.0f, 0.0f, depth},
25 .m_texels = glm::vec2 {0.0f, 0.0f},
29 .m_pos = glm::vec3 {width, 0.0f, depth},
30 .m_texels = glm::vec2 {1.0f, 0.0f},
34 .m_pos = glm::vec3 {width, height, depth},
35 .m_texels = glm::vec2 {1.0f, 1.0f},
39 .m_pos = glm::vec3 {0.0f, height, depth},
40 .m_texels = glm::vec2 {0.0f, 1.0f},