Skip to content

Commit

Permalink
Implement HDR (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
datacrystals committed Apr 15, 2022
1 parent 7b2f974 commit 8308a5c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ void ERS_CLASS_VisualRenderer::CreateViewport(std::string ViewportName) {
SystemUtils_->Logger_->Log("Creating Render Texture", 4);
glGenTextures(1, &FramebufferColorObject);
glBindTexture(GL_TEXTURE_2D, FramebufferColorObject);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 800, 800, 0, GL_RGB, GL_UNSIGNED_BYTE, NULL); // NOTE: THIS MUST HAPPEN ON RESIZE!
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA32F, 800, 800, 0, GL_RGB, GL_UNSIGNED_BYTE, NULL); // NOTE: THIS MUST HAPPEN ON RESIZE!
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
Viewport->FramebufferColorObject = FramebufferColorObject;
Expand Down

0 comments on commit 8308a5c

Please sign in to comment.