summaryrefslogtreecommitdiff
path: root/gfx/gl/sceneRenderer.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-12-17 12:14:35 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2023-12-17 12:14:35 +0000
commitcbc94ed8572cd4ea4e22ad5437b54eea055235d9 (patch)
tree8fe8d0016124f7e4fa19a72a6fe6c9ea48b6ab2c /gfx/gl/sceneRenderer.cpp
parentUse a separate framebuffer for illumination phase (diff)
downloadilt-cbc94ed8572cd4ea4e22ad5437b54eea055235d9.tar.bz2
ilt-cbc94ed8572cd4ea4e22ad5437b54eea055235d9.tar.xz
ilt-cbc94ed8572cd4ea4e22ad5437b54eea055235d9.zip
Use 32bit integer texture for position render data
Diffstat (limited to 'gfx/gl/sceneRenderer.cpp')
-rw-r--r--gfx/gl/sceneRenderer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gfx/gl/sceneRenderer.cpp b/gfx/gl/sceneRenderer.cpp
index b88fb71..2854dea 100644
--- a/gfx/gl/sceneRenderer.cpp
+++ b/gfx/gl/sceneRenderer.cpp
@@ -38,7 +38,7 @@ SceneRenderer::SceneRenderer(ScreenAbsCoord s, GLuint o) :
};
glBindFramebuffer(GL_FRAMEBUFFER, gBuffer);
- configuregdata(gPosition, {GL_RGB32F}, GL_RGB, GL_COLOR_ATTACHMENT0);
+ configuregdata(gPosition, {GL_RGB32I}, GL_RGB_INTEGER, GL_COLOR_ATTACHMENT0);
configuregdata(gNormal, {GL_RGB8_SNORM, GL_RGB16F}, GL_RGB, GL_COLOR_ATTACHMENT1);
configuregdata(gAlbedoSpec, {GL_RGB8}, GL_RGB, GL_COLOR_ATTACHMENT2);
constexpr std::array<unsigned int, 3> attachments {