Skip to content
Snippets Groups Projects
Commit 2c22b525 authored by Mathias Paulin's avatar Mathias Paulin :speech_balloon:
Browse files

[librender] update SimpleNode

parent 0ab2e3c9
No related branches found
No related tags found
No related merge requests found
...@@ -108,7 +108,6 @@ void SimpleNode::execute() { ...@@ -108,7 +108,6 @@ void SimpleNode::execute() {
m_framebuffer->bind(); m_framebuffer->bind();
const gl::GLenum buffers[] = { gl::GL_COLOR_ATTACHMENT0 }; const gl::GLenum buffers[] = { gl::GL_COLOR_ATTACHMENT0 };
gl::glDrawBuffers( 1, buffers ); gl::glDrawBuffers( 1, buffers );
...@@ -121,7 +120,7 @@ void SimpleNode::execute() { ...@@ -121,7 +120,7 @@ void SimpleNode::execute() {
gl::glColorMask( gl::GL_TRUE, gl::GL_TRUE, gl::GL_TRUE, gl::GL_TRUE ); gl::glColorMask( gl::GL_TRUE, gl::GL_TRUE, gl::GL_TRUE, gl::GL_TRUE );
gl::glDisable( gl::GL_BLEND ); gl::glDisable( gl::GL_BLEND );
float clearBlack[4] = { 0.0f, 1.0f, 0.0f, 0.0f }; float clearBlack[4] = { 0.04f, 0.04f, 0.04f, 0.0f };
float clearDepth = 1.0f; float clearDepth = 1.0f;
gl::glClearBufferfv( gl::GL_COLOR, 0, clearBlack ); gl::glClearBufferfv( gl::GL_COLOR, 0, clearBlack );
gl::glClearBufferfv( gl::GL_DEPTH, 0, &clearDepth ); gl::glClearBufferfv( gl::GL_DEPTH, 0, &clearDepth );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment