23 lines
432 B
C++
23 lines
432 B
C++
#pragma once
|
|
|
|
#include "ShaderProgram.h"
|
|
|
|
namespace td {
|
|
namespace shader {
|
|
|
|
class WorldShader : public ShaderProgram {
|
|
private:
|
|
unsigned int m_LocationProjection = 0, m_LocationView = 0;
|
|
protected:
|
|
void GetAllUniformLocation();
|
|
public:
|
|
WorldShader();
|
|
void LoadShader();
|
|
|
|
void SetProjectionMatrix(const maths::Mat4f& proj) const;
|
|
void SetViewMatrix(const maths::Mat4f& view) const;
|
|
};
|
|
|
|
} // namespace shader
|
|
} // namespace td
|