| 36 | } |
| 37 | |
| 38 | void Spatial::OnGetVisibleSet(Culler& culler, std::shared_ptr<Camera> const& camera, |
| 39 | bool noCull) |
| 40 | { |
| 41 | if (culling == CullingMode::ALWAYS) |
| 42 | { |
| 43 | return; |
| 44 | } |
| 45 | |
| 46 | if (culling == CullingMode::NEVER) |
| 47 | { |
| 48 | noCull = true; |
| 49 | } |
| 50 | |
| 51 | uint32_t savePlaneState = culler.GetPlaneState(); |
| 52 | if (noCull || culler.IsVisible(worldBound)) |
| 53 | { |
| 54 | GetVisibleSet(culler, camera, noCull); |
| 55 | } |
| 56 | culler.SetPlaneState(savePlaneState); |
| 57 | } |
| 58 | |
| 59 | void Spatial::UpdateWorldData(double applicationTime) |
| 60 | { |
no test coverage detected