| 234 | } |
| 235 | |
| 236 | void PlanarReflectionEffect::GatherVisuals(std::shared_ptr<Spatial> const& spatial) |
| 237 | { |
| 238 | auto visual = std::dynamic_pointer_cast<Visual>(spatial); |
| 239 | if (visual) |
| 240 | { |
| 241 | mCasterVisuals.push_back(visual); |
| 242 | return; |
| 243 | } |
| 244 | |
| 245 | auto node = std::dynamic_pointer_cast<Node>(spatial); |
| 246 | if (node) |
| 247 | { |
| 248 | for (int32_t i = 0; i < node->GetNumChildren(); ++i) |
| 249 | { |
| 250 | auto const& child = node->GetChild(i); |
| 251 | if (child) |
| 252 | { |
| 253 | GatherVisuals(child); |
| 254 | } |
| 255 | } |
| 256 | } |
| 257 | } |
| 258 | |
| 259 | void PlanarReflectionEffect::GetModelSpacePlanes() |
| 260 | { |
nothing calls this directly
no test coverage detected