Browse Source

Enable tranparency in the context

master
Riyyi 4 years ago
parent
commit
8dabc2d1a0
  1. 4
      inferno/src/inferno/render/context.cpp

4
inferno/src/inferno/render/context.cpp

@ -50,6 +50,10 @@ namespace Inferno {
// Enable z-buffer / depth buffer
glEnable(GL_DEPTH_TEST);
// Enable transparency
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glEnable(GL_BLEND);
}
void Context::update()

Loading…
Cancel
Save