Adding a really basic ambient light component

This commit is contained in:
2022-10-23 17:33:49 +02:00
parent adf2331ab1
commit f0984b6117
7 changed files with 67 additions and 19 deletions

View File

@ -12,6 +12,12 @@ namespace BarinkEngine {
};
struct LightComponent {
float Strength = 1.0f;
glm::vec3 Color = glm::vec3(1.0f, 1.0f, 1.0f);
};
struct CameraComponent {
glm::mat4 view;
@ -22,7 +28,6 @@ namespace BarinkEngine {
unsigned int VAO = 0;
unsigned int IBO = 0;
Mesh mesh;
// TODO: becomes a material
glm::vec3 color;
Shader shader;