MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Decal

Method Decal

Source/Engine/Level/Actors/Decal.cpp:12–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10#include "Engine/Graphics/RenderTools.h"
11
12Decal::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
23void Decal::SetSize(const Vector3& value)
24{

Callers

nothing calls this directly

Calls 1

GetBoundingBoxMethod · 0.45

Tested by

no test coverage detected