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

@@ -258,6 +258,10 @@
RelativePath=".\Globals.cpp" RelativePath=".\Globals.cpp"
> >
</File> </File>
<File
RelativePath=".\GroupInstance.cpp"
>
</File>
<File <File
RelativePath=".\IEBrowser.cpp" RelativePath=".\IEBrowser.cpp"
> >
@@ -270,6 +274,10 @@
RelativePath=".\IEDispatcher.cpp" RelativePath=".\IEDispatcher.cpp"
> >
</File> </File>
<File
RelativePath=".\LevelInstance.cpp"
>
</File>
<File <File
RelativePath="main.cpp" RelativePath="main.cpp"
> >
@@ -290,6 +298,10 @@
/> />
</FileConfiguration> </FileConfiguration>
</File> </File>
<File
RelativePath=".\PartInstance.cpp"
>
</File>
<File <File
RelativePath=".\propertyGrid.cpp" RelativePath=".\propertyGrid.cpp"
> >
@@ -298,6 +310,10 @@
RelativePath=".\PropertyWindow.cpp" RelativePath=".\PropertyWindow.cpp"
> >
</File> </File>
<File
RelativePath=".\PVInstance.cpp"
>
</File>
<File <File
RelativePath=".\WindowFunctions.cpp" RelativePath=".\WindowFunctions.cpp"
> >
@@ -321,10 +337,6 @@
RelativePath=".\Instance.cpp" RelativePath=".\Instance.cpp"
> >
</File> </File>
<File
RelativePath=".\PhysicalInstance.cpp"
>
</File>
<File <File
RelativePath=".\TextButtonInstance.cpp" RelativePath=".\TextButtonInstance.cpp"
> >
@@ -375,10 +387,22 @@
RelativePath=".\Globals.h" RelativePath=".\Globals.h"
> >
</File> </File>
<File
RelativePath=".\GroupInstance.h"
>
</File>
<File <File
RelativePath=".\IEDispatcher.h" RelativePath=".\IEDispatcher.h"
> >
</File> </File>
<File
RelativePath=".\LevelInstance.h"
>
</File>
<File
RelativePath=".\PartInstance.h"
>
</File>
<File <File
RelativePath=".\propertyGrid.h" RelativePath=".\propertyGrid.h"
> >
@@ -387,6 +411,10 @@
RelativePath=".\PropertyWindow.h" RelativePath=".\PropertyWindow.h"
> >
</File> </File>
<File
RelativePath=".\PVInstance.h"
>
</File>
<File <File
RelativePath=".\rapidxml\rapidxml.hpp" RelativePath=".\rapidxml\rapidxml.hpp"
> >
@@ -434,10 +462,6 @@
RelativePath=".\Instance.h" RelativePath=".\Instance.h"
> >
</File> </File>
<File
RelativePath=".\PhysicalInstance.h"
>
</File>
<File <File
RelativePath=".\TextButtonInstance.h" RelativePath=".\TextButtonInstance.h"
> >

View File

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