| .. | .. |
|---|
| 9699 | 9699 | |
|---|
| 9700 | 9700 | if (renderCamera != lightCamera) |
|---|
| 9701 | 9701 | //for (int count = parentcam.GetTransformCount(); --count>=0;) |
|---|
| 9702 | | - LA.matConcat(matrix, parentcam.GlobalTransform(), matrix); |
|---|
| 9702 | + LA.matConcat(matrix, parentcam.GlobalTransformInv(), matrix); |
|---|
| 9703 | 9703 | |
|---|
| 9704 | 9704 | // LA.matConcat(renderCamera.toScreen, renderCamera.toParent, matrix); |
|---|
| 9705 | 9705 | |
|---|
| .. | .. |
|---|
| 9715 | 9715 | |
|---|
| 9716 | 9716 | if (renderCamera != lightCamera) |
|---|
| 9717 | 9717 | //for (int count = parentcam.GetTransformCount(); --count>=0;) |
|---|
| 9718 | | - LA.matConcat(parentcam.GlobalTransformInv(), matrix, matrix); |
|---|
| 9718 | + LA.matConcat(parentcam.GlobalTransform(), matrix, matrix); |
|---|
| 9719 | 9719 | |
|---|
| 9720 | 9720 | // LA.matConcat(renderCamera.fromParent, renderCamera.fromScreen, matrix); |
|---|
| 9721 | 9721 | |
|---|
| .. | .. |
|---|
| 10916 | 10916 | // if (parentcam != renderCamera) // not a light |
|---|
| 10917 | 10917 | if (cam != lightCamera) |
|---|
| 10918 | 10918 | //for (int count = parentcam.GetTransformCount(); --count>=0;) |
|---|
| 10919 | | - LA.matConcat(matrix, parentcam.GlobalTransform(), matrix); |
|---|
| 10919 | + LA.matConcat(matrix, parentcam.GlobalTransformInv(), matrix); |
|---|
| 10920 | 10920 | |
|---|
| 10921 | 10921 | for (int j = 0; j < 4; j++) |
|---|
| 10922 | 10922 | { |
|---|
| .. | .. |
|---|
| 10931 | 10931 | // if (parentcam != renderCamera) // not a light |
|---|
| 10932 | 10932 | if (cam != lightCamera) |
|---|
| 10933 | 10933 | //for (int count = parentcam.GetTransformCount(); --count>=0;) |
|---|
| 10934 | | - LA.matConcat(parentcam.GlobalTransformInv(), matrix, matrix); |
|---|
| 10934 | + LA.matConcat(parentcam.GlobalTransform(), matrix, matrix); |
|---|
| 10935 | 10935 | |
|---|
| 10936 | 10936 | //LA.matConcat(cam.fromScreen, parentcam.fromParent, matrix); |
|---|
| 10937 | 10937 | |
|---|