Example #1
0
        protected override void Update()
        {
            //double sunAtmoPow = Vector3D.Dot(Vector3D.Up, SunWobject.LocalPosition.Normalized).Length;

            SunWobject?.GetModule <MeshRenderer>().Material.SetData("colorMult", new Color256(122 / 255.0D, 168 / 255.0D, 255 / 255.0D, 255 / 255.0D) * 1.0D);



            MoonWobject?.GetModule <MeshRenderer>().Material.SetData("colorMult", new Color256(122 / 255.0D, 168 / 255.0D, 255 / 255.0D, 255 / 255.0D) * 1.0D);
        }
Example #2
0
        protected override void OnDelete()
        {
            MainRenderer?.Delete();
            MainRenderer = null;

            SkyWobjet?.Delete();
            SkyWobjet = null;

            SunWobject?.Delete();
            SunWobject = null;

            MoonWobject?.Delete();
            MoonWobject = null;

            Camera?.Delete();
            Camera = null;

            Instance = null;

            base.OnDelete();
        }