udemy_opengl/src/light.h

19 lines
501 B
C

#pragma once
#include <GL/glew.h>
#include <glm/glm.hpp>
#include "math.h"
struct Light {
Vector3 color = Vector3(1.0f, 1.0f, 1.0f);
f32 ambient_intensity = 1.0f;
f32 diffuse_intensity = 0.0f;
};
struct Directional_Light : public Light {
Vector3 direction = Vector3(0.0f, -1.0f, 0.0f); // Default to down
};
// Some of these should be u32
void use_light(Directional_Light *light, f32 color_location, f32 ambient_intensity_location, f32 diffuse_intensity_location, f32 direction_location);