| 10 | #include "Engine/Graphics/RenderTools.h" |
| 11 | |
| 12 | Decal::Decal(const SpawnParams& params) |
| 13 | : Actor(params) |
| 14 | , _size(100.0f) |
| 15 | { |
| 16 | _drawCategory = SceneRendering::PreRender; |
| 17 | _bounds.Extents = _size * 0.5f; |
| 18 | _bounds.Transformation = _transform; |
| 19 | _bounds.GetBoundingBox(_box); |
| 20 | BoundingSphere::FromBox(_box, _sphere); |
| 21 | } |
| 22 | |
| 23 | void Decal::SetSize(const Vector3& value) |
| 24 | { |
nothing calls this directly
no test coverage detected