couch/core/Shaders/Shader.h
2021-01-23 12:33:10 -06:00

29 lines
556 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 UpdateNormal(glm::mat3 normal);
void UpdateMaterial(Material material);
void UpdateDirectionalLight(DirectionalLight directionalLight);
virtual Name GetName() const;
};
#endif /* SHADER_H */