1
0
Fork 0
Univerxel/src/render/pass/SkyProgram.hpp

30 lines
607 B
C++

#pragma once
#include "Program.hpp"
#include "../buffer/VertexBuffer.hpp"
/// Skybox pass
class SkyProgram: public Program {
public:
SkyProgram();
~SkyProgram();
std::string getName() const override;
void start(Renderer *) override;
Buffer::params setup(Renderer *, glm::mat4 modelMatrix) override;
void draw(Renderer *);
void setView(const GLfloat *matrix);
void setProjection(const GLfloat *matrix);
void bindTexture(const GLuint textureID);
private:
GLuint ViewMatrixID;
GLuint ProjectionMatrixID;
GLuint TextureID;
VertexBuffer CubeBuffer;
};