Skip to content
Snippets Groups Projects
Commit 7eece95c authored by Sindre Eiklid's avatar Sindre Eiklid
Browse files

Enable depth

parent d9b107c9
Branches
No related tags found
No related merge requests found
......@@ -69,6 +69,8 @@ int main() {
//enable transparency on texture //Might not need!!!
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
//enable depth
glEnable(GL_DEPTH_TEST);
//set background color to cyan (sky color)
glClearColor(0.7f, 1.0f, 1.0f, 1.0f);
//load textures to be used in gameloop
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment