Move body icon sizing into render settings
This commit is contained in:
parent
f65b0cea88
commit
9da188fa57
4 changed files with 23 additions and 5 deletions
|
|
@ -476,7 +476,7 @@ public class ZoneRenderer : MonoBehaviour
|
|||
// if (depth > _maxDepth) _maxDepth = depth;
|
||||
planet.GravityWell.material.SetFloat("_Depth", gravityWellDepth);
|
||||
planet.Icon.transform.position = new Vector3(0, -gravityWellDepth, 0);
|
||||
planet.Icon.transform.localScale = Settings.IconSize.Evaluate(mass) * Vector3.one;
|
||||
planet.Icon.transform.localScale = (float)RenderSettings.ResolveBodyIconSize(mass) * Vector3.one;
|
||||
|
||||
|
||||
_bodyViewsByBodyKey[bodyKey] = planet;
|
||||
|
|
|
|||
Loading…
Reference in a new issue