Basic transparancy working.

This commit is contained in:
Tleety
2016-01-11 15:28:17 +01:00
parent 3c5966d174
commit fa6dd2dc67
5 changed files with 25 additions and 13 deletions
+2 -1
View File
@@ -4,7 +4,8 @@
DrawFinalPassState::DrawFinalPassState()
{
BindFramebuffer(0);
Enable(GL_BLEND);
BlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
Enable(GL_DEPTH_TEST);
Enable(GL_CULL_FACE);
ClearColor(glm::vec4(200.f / 255, 0.f / 255, 200.f / 255, 0.f));