| 92 | } |
| 93 | |
| 94 | bool IShadowMap::PerformUpdate() |
| 95 | { |
| 96 | UpdateCycles.Reset(); |
| 97 | |
| 98 | LightsProcessed = 0; |
| 99 | LightsShadowmapped = 0; |
| 100 | |
| 101 | // CollectLights will be null if the calling code decides that shadowmaps are not needed. |
| 102 | if (CollectLights != nullptr) |
| 103 | { |
| 104 | UpdateCycles.Clock(); |
| 105 | UploadAABBTree(); |
| 106 | UploadLights(); |
| 107 | return true; |
| 108 | } |
| 109 | return false; |
| 110 | } |
| 111 | |
| 112 | void IShadowMap::UploadLights() |
| 113 | { |
no test coverage detected