couch/core/Shaders/Shader.h
2021-01-22 15:27:32 -06:00

28 lines
517 B
C++

#ifndef SHADER_H
#define SHADER_H
#include <glm/gtc/type_ptr.hpp>
#include "types.h"
#include "Material.h"
#include "Light.h"
class Shader {
public:
Id id;
Shader(const char *vertexCode, const char *fragmentCode);
void Use();
void UpdateView(Matrix view);
void UpdateModel(Matrix model);
void UpdateProjection(Matrix projection);
void UpdateMaterial(Material material);
void UpdateDirectionalLight(DirectionalLight directionalLight);
virtual Name GetName() const;
};
#endif /* SHADER_H */