Files
Tower-Defense2/include/td/render/shader/WorldShader.h
2025-07-16 00:32:40 +02:00

22 lines
415 B
C++

#pragma once
#include <td/render/shader/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 SetProjectionMatrix(const Mat4f& proj) const;
void SetViewMatrix(const Mat4f& view) const;
};
} // namespace shader
} // namespace td