From 239a32b1d85311abaece93d1289bb4e48d73a492 Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Sat, 15 Nov 2014 21:19:17 +0100 Subject: [PATCH] Add mipmap level for shadow --- src/graphics/rtts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics/rtts.cpp b/src/graphics/rtts.cpp index 723dfdd80..6fb3ba12c 100644 --- a/src/graphics/rtts.cpp +++ b/src/graphics/rtts.cpp @@ -245,7 +245,7 @@ RTT::RTT(size_t width, size_t height) if (UserConfigParams::m_shadows && !irr_driver->needUBOWorkaround()) { - shadowColorTex = generateRTT3D(GL_TEXTURE_2D_ARRAY, 1024, 1024, 4, GL_R32F, GL_RED, GL_FLOAT, 1); + shadowColorTex = generateRTT3D(GL_TEXTURE_2D_ARRAY, 1024, 1024, 4, GL_R32F, GL_RED, GL_FLOAT, 10); shadowDepthTex = generateRTT3D(GL_TEXTURE_2D_ARRAY, 1024, 1024, 4, GL_DEPTH24_STENCIL8, GL_DEPTH_STENCIL, GL_UNSIGNED_INT_24_8, 1); somevector.clear();