| 71 | Real ViewportIconsRenderer::MaxSizeDistance = 1000.0f; |
| 72 | |
| 73 | void ViewportIconsRenderer::GetBounds(const Vector3& position, const Vector3& viewPosition, BoundingSphere& bounds) |
| 74 | { |
| 75 | Real scale = Math::Square(Vector3::Distance(position, viewPosition) / MaxSizeDistance); |
| 76 | Real radius = MinSize + Math::Min<Real>(scale, 1.0f) * (MaxSize - MinSize); |
| 77 | bounds = BoundingSphere(position, radius * Scale); |
| 78 | } |
| 79 | |
| 80 | void ViewportIconsRenderer::DrawIcons(RenderContext& renderContext, Actor* actor) |
| 81 | { |
no test coverage detected