Some cleanups

This commit is contained in:
2021-01-13 19:03:47 +01:00
parent 89ae811beb
commit 0370a2e871
24 changed files with 321 additions and 237 deletions

View File

@@ -91,6 +91,11 @@ void Framebuffer::setExposureCorrection(bool exposureCorrection)
shaderProgram->unbind();
}
GLuint Framebuffer::getTextureId()
{
return textures[0];
}
DepthMap::DepthMap(int TYPE, int RESOLUTION) :
cubeMap(RESOLUTION)
{
@@ -134,3 +139,18 @@ void DepthMap::unbind()
{
glBindFramebuffer(GL_FRAMEBUFFER, 0);
}
GLuint DepthMap::getFBO()
{
return depthMapFBO;
}
GLuint DepthMap::getDepthMap()
{
return depthMap;
}
GLuint DepthMap::getCubeMapId()
{
return cubeMap.getTextureId();
}