| 191 | } |
| 192 | |
| 193 | void SkyCache::Shutdown() |
| 194 | { |
| 195 | if(StateR != nullptr) |
| 196 | { |
| 197 | arhosekskymodelstate_free(StateR); |
| 198 | StateR = nullptr; |
| 199 | } |
| 200 | |
| 201 | if(StateG != nullptr) |
| 202 | { |
| 203 | arhosekskymodelstate_free(StateG); |
| 204 | StateG = nullptr; |
| 205 | } |
| 206 | |
| 207 | if(StateB != nullptr) |
| 208 | { |
| 209 | arhosekskymodelstate_free(StateB); |
| 210 | StateB = nullptr; |
| 211 | } |
| 212 | |
| 213 | CubeMap.Shutdown(); |
| 214 | Turbidity = 0.0f; |
| 215 | Albedo = 0.0f; |
| 216 | Elevation = 0.0f; |
| 217 | SunDirection = 0.0f; |
| 218 | SunRadiance = 0.0f; |
| 219 | SunIrradiance = 0.0f; |
| 220 | SH = SH9Color(); |
| 221 | } |
| 222 | |
| 223 | SkyCache::~SkyCache() |
| 224 | { |
nothing calls this directly
no test coverage detected