- Timestamp:
- 10/04/07 09:33:09 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderingRuns/OgreDepthShadowMapRenderingRun.cpp
r2460 r2551 267 267 lispMat[3][3] = 0; 268 268 269 depthMapCamera->setCustomProjectionMatrix(true, Matrix4::IDENTITY); 270 depthMapCamera->setCustomViewMatrix(true, lispMat * newViewMatrix); 269 //depthMapCamera->setCustomProjectionMatrix(true, Matrix4::IDENTITY); 270 //depthMapCamera->setCustomViewMatrix(true, lispMat * newViewMatrix); 271 272 depthMapCamera->setCustomProjectionMatrix(true, lispMat); 273 depthMapCamera->setCustomViewMatrix(true, newViewMatrix); 271 274 } 272 275 else … … 280 283 281 284 Matrix4 lightMatrix = depthMapCamera->getViewMatrix(); 282 frun->setLightMatrix(lightMatrix); 285 //frun->setLightMatrix(lightMatrix); 286 frun->setLightMatrix(depthMapCamera->getProjectionMatrix() * lightMatrix); 283 287 284 288 OgreIlluminationManager::getSingleton().updateGlobalRun( ILLUMRUN_FOCUSING_MAP, … … 302 306 scaleM.setScale(Vector3(2.0 / scale.x, 2.0 / scale.y, -2.0 / scale.z)); 303 307 projection = scaleM * trans; 304 depthMapCamera->setCustomProjectionMatrix(true, projection); 308 //depthMapCamera->setCustomProjectionMatrix(true, projection); 309 lightFarPlane = scale.z; 310 depthMapCamera->setCustomProjectionMatrix(true, projection * depthMapCamera->getProjectionMatrix()); 305 311 } 306 312 else if(light->getType() == Light::LT_SPOTLIGHT)
Note: See TracChangeset
for help on using the changeset viewer.