From 2919f4ebaac0d5a2045e6c12d8c1069c7a16d188 Mon Sep 17 00:00:00 2001 From: andreja6 Date: Sat, 27 Oct 2018 20:38:33 -0700 Subject: [PATCH] Disabled shadows --- main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.cpp b/main.cpp index 8831c80..f3bf781 100644 --- a/main.cpp +++ b/main.cpp @@ -1278,9 +1278,9 @@ void Demo::onGraphics(RenderDevice* rd) { Matrix4 lightMVP = lightProjectionMatrix * lightCFrame.inverse(); - if (GLCaps::supports_GL_ARB_shadow()) { + /*if (GLCaps::supports_GL_ARB_shadow()) { generateShadowMap(lightCFrame); - } + } */ renderDevice->setProjectionAndCameraMatrix(*cameraController.getCamera()); @@ -1316,9 +1316,9 @@ void Demo::onGraphics(RenderDevice* rd) { */ rd->pushState(); - if (GLCaps::supports_GL_ARB_shadow()) { + /*if (GLCaps::supports_GL_ARB_shadow()) { rd->configureShadowMap(1, lightMVP, shadowMap); - } + }*/ rd->beforePrimitive();