diff --git a/graphics.cc b/graphics.cc index 6678bca..bebcc31 100644 --- a/graphics.cc +++ b/graphics.cc @@ -42,7 +42,7 @@ void Graphics::init(Level* level) { depthShader = ShaderProgramCreator("depth") .attributeLocations(vao->getAttributeLocations()).create(); - depthTexture = SharedTexture2D( new Texture2D(windowSize, GL_DEPTH_COMPONENT16)); + depthTexture = SharedTexture2D( new Texture2D(windowSize, GL_DEPTH_COMPONENT24)); depthTexture->setMinFilter(GL_NEAREST); depthTexture->setMagFilter(GL_NEAREST); depthTexture->setWrapS(GL_CLAMP_TO_EDGE); @@ -57,7 +57,7 @@ void Graphics::init(Level* level) { for (unsigned int i = 0; i(std::min(int(level->getLights()->size()), 1)); for (unsigned int i = 0; i<1 && isetMinFilter(GL_NEAREST); depth_cubeMaps.at(i)->setMagFilter(GL_NEAREST); depth_cubeMaps.at(i)->setWrapS(GL_CLAMP_TO_EDGE);