Changeset 2937 for GTP/trunk/App/Demos
- Timestamp:
- 09/12/08 18:22:53 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/ShadowMapping.cpp
r2936 r2937 248 248 const Vector3 startPt = Vector3(lsNear.x, lsNear.y, bounds_ls.Max().z); 249 249 //const Vector3 schas = lightSpace * mCamera->GetPosition(); 250 //const Vector3 startPt = Vector3(schas.x, schas.y, schas.y);//bounds_ls.Max().z);250 //const Vector3 startPt = Vector3(schas.x, schas.y, bounds_ls.Max().z); 251 251 252 252 cout << "mx: " << bounds_ls.Max() << endl; … … 448 448 449 449 Matrix4x4 refl2 = ScaleMatrix(-1, -1, 1); 450 //lightProj = refl2 * lightProj;450 lightProj = refl2 * lightProj; 451 451 452 452 const Matrix4x4 matLispSM = … … 476 476 //Matrix4x4 scaleTranslate = GetFittingProjectionMatrix(extremalPoints); 477 477 Matrix4x4 scaleTranslate = GetFittingProjectionMatrix(lightPts); 478 lightProj *= scaleTranslate;478 lightProj = scaleTranslate * lightProj; 479 479 480 480 cout << "max: " << lightView * lightProj * dummyBox.Max() << endl;
Note: See TracChangeset
for help on using the changeset viewer.