Added transparent object that disappeared from the merge

This commit is contained in:
Teejoon
2016-03-01 12:54:01 +01:00
parent 77eaa45702
commit 8cda614de4
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -189,7 +189,7 @@ void DrawFinalPass::Draw(RenderScene& scene)
GLERROR("OpaqueObjects");
//state->BlendFunc(GL_ONE, GL_ONE);
state->BlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
DrawModelRenderQueues(scene.Jobs.TransparentObjects, scene);
GLERROR("TransparentObjects");
//state->BlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
DrawSprites(scene.Jobs.SpriteJob, scene);
@@ -9,7 +9,6 @@ PickingPassState::PickingPassState(GLuint frameBuffer)
Enable(GL_DEPTH_TEST);
Enable(GL_CULL_FACE);
Disable(GL_BLEND);
glm::vec4 clearColor = glm::vec4(0.f);
//ClearColor(clearColor);
//Clear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);