Fix shadow atlas resizing bug
This commit is contained in:
@@ -134,6 +134,18 @@ public:
|
||||
Init(Width, Height, BordersPadding);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Clears and resets atlas back to the initial state.
|
||||
/// </summary>
|
||||
void Reset()
|
||||
{
|
||||
Width = 0;
|
||||
Height = 0;
|
||||
BordersPadding = 0;
|
||||
Nodes.Clear();
|
||||
FreeNodes.Clear();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Tries to insert a node into the atlas using rectangle pack algorithm.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user