Day 12 done, we now have various kinds of lights.

This commit is contained in:
Zed A. Shaw 2026-08-22 13:48:29 -04:00
parent fb2c871419
commit a1d2c7768d
59 changed files with 13605 additions and 0 deletions

View file

@ -0,0 +1,42 @@
#pragma once
#include <glad/glad.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include "shader.hpp"
#include <string>
#include <vector>
struct Vertex {
glm::vec3 Position;
glm::vec3 Normal;
glm::vec2 TexCoords;
};
struct Texture {
unsigned int id;
std::string type;
std::string path;
};
struct Mesh {
std::vector<Vertex> vertices;
std::vector<unsigned int> indices;
std::vector<Texture> textures;
unsigned int VAO;
unsigned int VBO;
unsigned int EBO;
Mesh(std::vector<Vertex> vertices, std::vector<unsigned int> indices, std::vector<Texture> textures) :
vertices(vertices),
indices(indices),
textures(textures)
{
setupMesh();
}
void Draw(Shader &shader);
void setupMesh();
};