| 21 | } |
| 22 | |
| 23 | void Decal::SetSize(const Vector3& value) |
| 24 | { |
| 25 | const auto v = value.GetAbsolute(); |
| 26 | if (v != _size) |
| 27 | { |
| 28 | _size = v; |
| 29 | _bounds.Extents = v * 0.5f; |
| 30 | _bounds.GetBoundingBox(_box); |
| 31 | BoundingSphere::FromBox(_box, _sphere); |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | MaterialInstance* Decal::CreateAndSetVirtualMaterialInstance() |
| 36 | { |
nothing calls this directly
no test coverage detected