refactor rendering

This commit is contained in:
2025-07-16 13:38:02 +02:00
parent 1bee6aed9c
commit 9667454811
14 changed files with 130 additions and 105 deletions

View File

@@ -0,0 +1,23 @@
#pragma once
#include <td/render/shader/ShaderProgram.h>
namespace td {
namespace shader {
class CameraShaderProgram : public ShaderProgram {
private:
unsigned int m_LocationProjection = 0, m_LocationView = 0;
public:
CameraShaderProgram() {}
void SetProjectionMatrix(const Mat4f& proj) const;
void SetViewMatrix(const Mat4f& view) const;
virtual void GetAllUniformLocation();
};
} // namespace shader
} // namespace td