Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Sep 1, 2019
1 parent e8f38d9 commit b85b7e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion doomsday/tests/test_gloom/gloom/render/gbuffer.cpp
Expand Up @@ -68,7 +68,8 @@ void GBuffer::glInit(const Context &context)
d->frame.glInit();

using VBuf = GLBufferT<Vertex2Tex>;
VBuf *vbuf = new VBuf;

auto *vbuf = new VBuf;
vbuf->setVertices(gl::TriangleStrip,
VBuf::Builder().makeQuad(Rectanglef(0, 0, 1, 1), Rectanglef(0, 1, 1, -1)),
gl::Static);
Expand Down
Expand Up @@ -17,8 +17,7 @@ vec4 GBuffer_FragmentViewSpacePos(void) {
vec4 clipSpacePos = vec4(normCoord * 2.0 - 1.0, z, 1.0);
vec4 viewSpacePos = uInverseProjMatrix * clipSpacePos;
vec3 pos = viewSpacePos.xyz / viewSpacePos.w;
//return vec4(pos, 1.0);
return vec4(0.0, length(pos)/10.0, 0.0, 1.0);
return vec4(pos, 1.0);
}

#endif // GLOOM_GBUFFER_IN_H

0 comments on commit b85b7e2

Please sign in to comment.