Completely removed shadows

This commit is contained in:
andreja6
2018-10-30 13:31:57 -07:00
parent e9a13b8163
commit 8a097f7eb1
2 changed files with 38 additions and 14 deletions

View File

@@ -1247,9 +1247,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());
@@ -1285,9 +1285,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();
@@ -1774,10 +1774,10 @@ void Demo::run() {
sky = Sky::create(NULL, ExePath() + "/content/sky/");
if (GLCaps::supports_GL_ARB_shadow()) {
/*if (GLCaps::supports_GL_ARB_shadow()) {
shadowMap = Texture::createEmpty(512, 512, "Shadow map", TextureFormat::depth(),
Texture::CLAMP, Texture::BILINEAR_NO_MIPMAP, Texture::DIM_2D, Texture::DEPTH_LEQUAL);
}
}*/
cursorid = cursor->openGLID();