Disabled shadows
This commit is contained in:
8
main.cpp
8
main.cpp
@@ -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();
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user