| 165 | } |
| 166 | |
| 167 | void EnvironmentProbe::UpdateBounds() |
| 168 | { |
| 169 | if (BoxProjection) |
| 170 | { |
| 171 | OrientedBoundingBox(_radius, _transform).GetBoundingBox(_box); |
| 172 | BoundingSphere::FromBox(_box, _sphere); |
| 173 | } |
| 174 | else |
| 175 | { |
| 176 | _sphere = BoundingSphere(_transform.Translation, _radius * _transform.Scale.MaxValue()); |
| 177 | BoundingBox::FromSphere(_sphere, _box); |
| 178 | } |
| 179 | if (_sceneRenderingKey != -1) |
| 180 | GetSceneRendering()->UpdateActor(this, _sceneRenderingKey, ISceneRenderingListener::Bounds); |
| 181 | } |
| 182 | |
| 183 | void EnvironmentProbe::Draw(RenderContext& renderContext) |
| 184 | { |
nothing calls this directly
no test coverage detected