Changeset 2937


Ignore:
Timestamp:
09/12/08 18:22:53 (16 years ago)
Author:
mattausch
Message:

better somewhat

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/ShadowMapping.cpp

    r2936 r2937  
    248248        const Vector3 startPt = Vector3(lsNear.x, lsNear.y, bounds_ls.Max().z); 
    249249        //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); 
    251251 
    252252        cout << "mx: " <<  bounds_ls.Max() << endl; 
     
    448448 
    449449        Matrix4x4 refl2 = ScaleMatrix(-1, -1, 1);  
    450         //lightProj = refl2 * lightProj; 
     450        lightProj = refl2 * lightProj; 
    451451 
    452452        const Matrix4x4 matLispSM =  
     
    476476        //Matrix4x4 scaleTranslate = GetFittingProjectionMatrix(extremalPoints); 
    477477        Matrix4x4 scaleTranslate = GetFittingProjectionMatrix(lightPts); 
    478         lightProj *= scaleTranslate; 
     478        lightProj = scaleTranslate * lightProj; 
    479479 
    480480        cout << "max: " << lightView * lightProj * dummyBox.Max() << endl; 
Note: See TracChangeset for help on using the changeset viewer.