Example #1
0
        protected override void InitNode()
        {
            ApplyTestPresset(AtmosphereParameters.Get(atmosphereBase));

            TryBake();

            InitMisc();
            InitMaterials();
            InitMesh();

            InitSetAtmosphereUniforms();
        }
Example #2
0
        protected override void InitNode()
        {
            ApplyPresset(AtmosphereParameters.Get(AtmosphereBase));

            Bake();

            InitMisc();
            InitMaterials();

            InitUniforms(SkyMaterial);
            InitUniforms(ParentBody.MPB);

            SetUniforms(SkyMaterial);
            SetUniforms(ParentBody.MPB);
        }
Example #3
0
        private void OnAtmospherePresetChanged(Body body, Atmosphere atmosphere, AtmosphereBase atmosphereBase)
        {
            if (body == null)
            {
                Debug.Log("Atmosphere: OnAtmospherePresetChanged body is null!");
                return;
            }

            if (atmosphere == null)
            {
                Debug.Log("Atmosphere: OnAtmospherePresetChanged atmosphere is null!");
                return;
            }

            atmosphere.ApplyPresset(AtmosphereParameters.Get(atmosphereBase));
            atmosphere.Bake();
        }
Example #4
0
        private void OnAtmosphereBaked(Planetoid planetoid, Atmosphere atmosphere)
        {
            if (planetoid == null)
            {
                Debug.Log("Atmosphere: OnAtmosphereBaked planetoid is null!");
                return;
            }

            if (atmosphere == null)
            {
                Debug.Log("Atmosphere: OnAtmosphereBaked atmosphere is null!");
                return;
            }

            atmosphere.ApplyPresset(AtmosphereParameters.Get(atmosphere.AtmosphereBase));
            atmosphere.Reanimate();
        }