11 Frustum(
float w,
float h,
float z,
bool close_front) {
12 vertices.push_back(Eigen::Vector3f(w / 2, h / 2, z));
13 vertices.push_back(Eigen::Vector3f(-w / 2, h / 2, z));
14 vertices.push_back(Eigen::Vector3f(-w / 2, -h / 2, z));
15 vertices.push_back(Eigen::Vector3f(w / 2, -h / 2, z));
16 vertices.push_back(Eigen::Vector3f(0, 0, 0));
22 normals.push_back(Eigen::Vector3f(0, 0, 0));
24 indices = {0, 4, 1, 1, 4, 2, 2, 4, 3, 3, 4, 0};
27 std::array<int, 6> front_indices = {0, 1, 2, 0, 2, 3};
28 indices.insert(
indices.end(), front_indices.begin(), front_indices.end());