Enable tranparency in the context
This commit is contained in:
@@ -50,6 +50,10 @@ namespace Inferno {
|
|||||||
|
|
||||||
// Enable z-buffer / depth buffer
|
// Enable z-buffer / depth buffer
|
||||||
glEnable(GL_DEPTH_TEST);
|
glEnable(GL_DEPTH_TEST);
|
||||||
|
|
||||||
|
// Enable transparency
|
||||||
|
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||||
|
glEnable(GL_BLEND);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Context::update()
|
void Context::update()
|
||||||
|
|||||||
Reference in New Issue
Block a user