Disabled shadows

This commit is contained in:
andreja6
2018-10-27 20:38:33 -07:00
parent 1dd930af49
commit 2919f4ebaa

View File

@@ -1278,9 +1278,9 @@ void Demo::onGraphics(RenderDevice* rd) {
Matrix4 lightMVP = lightProjectionMatrix * lightCFrame.inverse(); Matrix4 lightMVP = lightProjectionMatrix * lightCFrame.inverse();
if (GLCaps::supports_GL_ARB_shadow()) { /*if (GLCaps::supports_GL_ARB_shadow()) {
generateShadowMap(lightCFrame); generateShadowMap(lightCFrame);
} } */
renderDevice->setProjectionAndCameraMatrix(*cameraController.getCamera()); renderDevice->setProjectionAndCameraMatrix(*cameraController.getCamera());
@@ -1316,9 +1316,9 @@ void Demo::onGraphics(RenderDevice* rd) {
*/ */
rd->pushState(); rd->pushState();
if (GLCaps::supports_GL_ARB_shadow()) { /*if (GLCaps::supports_GL_ARB_shadow()) {
rd->configureShadowMap(1, lightMVP, shadowMap); rd->configureShadowMap(1, lightMVP, shadowMap);
} }*/
rd->beforePrimitive(); rd->beforePrimitive();