- Timestamp:
- 09/16/08 16:03:01 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/ShadowMapping.cpp
r2951 r2952 137 137 138 138 139 ShadowMap::ShadowMap( Light *light, int size, const AxisAlignedBox3 &sceneBox, Camera *cam):139 ShadowMap::ShadowMap(DirectionalLight *light, int size, const AxisAlignedBox3 &sceneBox, Camera *cam): 140 140 mSceneBox(sceneBox), mSize(size), mCamera(cam), mLight(light) 141 141 { … … 456 456 const Vector3 projViewDir = GetProjViewDir(lightView * lightProj, frustumPoints); 457 457 458 //do Light Space Perspective shadow mapping458 //do DirectionalLight Space Perspective shadow mapping 459 459 //rotate the lightspace so that the projected light view always points upwards 460 460 //calculate a frame matrix that uses the projViewDir[lightspace] as up vector
Note: See TracChangeset
for help on using the changeset viewer.