Make game viewport authority runtime-neutral
This commit is contained in:
parent
da6ab814c8
commit
911bb72f69
45 changed files with 424 additions and 369 deletions
|
|
@ -1,4 +1,4 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
|
|
@ -250,10 +250,10 @@ public class VolumeSampling : MonoBehaviour
|
|||
: Vector2.zero;
|
||||
}
|
||||
|
||||
private static AetheriaRuntimeRtsViewportBounds BuildViewportBounds(Vector2 center, Vector2 size)
|
||||
private static AetheriaRuntimeViewportBounds BuildViewportBounds(Vector2 center, Vector2 size)
|
||||
{
|
||||
var halfSize = size * 0.5f;
|
||||
return new AetheriaRuntimeRtsViewportBounds
|
||||
return new AetheriaRuntimeViewportBounds
|
||||
{
|
||||
MinX = center.x - halfSize.x,
|
||||
MinY = center.y - halfSize.y,
|
||||
|
|
|
|||
Loading…
Reference in a new issue