public static MyPostprocessSettings LerpExposure(ref MyPostprocessSettings A, ref MyPostprocessSettings B, float t)
        {
            MyPostprocessSettings C = A;

            C.LuminanceExposure = VRageMath.MathHelper.Lerp(A.LuminanceExposure, B.LuminanceExposure, t);
            return(C);
        }
        protected override void Init(MyObjectBuilder_DefinitionBase builder)
        {
            base.Init(builder);

            MyObjectBuilder_VisualSettingsDefinition objBuilder = (MyObjectBuilder_VisualSettingsDefinition)builder;
            FogProperties = objBuilder.FogProperties;
            SunProperties = objBuilder.SunProperties;
            PostProcessSettings = objBuilder.PostProcessSettings;
            ShadowSettings.CopyFrom(objBuilder.ShadowSettings);
        }
 static MyPostprocessSettings()
 {
     Default = new MyPostprocessSettings
     {
         EnableTonemapping = true,
         EnableEyeAdaptation = false,
         BloomSize = 6,
         Temperature = 6500,
         Data = Layout.Default,
     };
 }
 static MyPostprocessSettings()
 {
     Default = new MyPostprocessSettings
     {
         EnableTonemapping   = true,
         EnableEyeAdaptation = false,
         BloomSize           = 6,
         Temperature         = 6500,
         Data = Layout.Default,
     };
 }
		protected override void Init(MyObjectBuilder_DefinitionBase builder)
        {
            base.Init(builder);

            MyObjectBuilder_EnvironmentDefinition objBuilder = (MyObjectBuilder_EnvironmentDefinition)builder;
            FogProperties = objBuilder.FogProperties;
            SunProperties = objBuilder.SunProperties;
            PostProcessSettings = objBuilder.PostProcessSettings;
            SSAOSettings = objBuilder.SSAOSettings;
            HBAOSettings = objBuilder.HBAOSettings;
            ShadowSettings.CopyFrom(objBuilder.ShadowSettings);
            SmallShipMaxSpeed = objBuilder.SmallShipMaxSpeed;
            LargeShipMaxSpeed = objBuilder.LargeShipMaxSpeed;
            SmallShipMaxAngularSpeed = objBuilder.SmallShipMaxAngularSpeed;
            LargeShipMaxAngularSpeed = objBuilder.LargeShipMaxAngularSpeed;
            ContourHighlightColor = new Color(objBuilder.ContourHighlightColor);
            ContourHighlightThickness = objBuilder.ContourHighlightThickness;
            HighlightPulseInSeconds = objBuilder.HighlightPulseInSeconds;
            EnvironmentTexture = objBuilder.EnvironmentTexture;
            EnvironmentOrientation = objBuilder.EnvironmentOrientation;
        }
 public static void SwitchProsprocessSettings(MyPostprocessSettings settings)
 {
     var message = MessagePool.Get<MyRenderMessageUpdatePostprocessSettings>(MyRenderMessageEnum.UpdatePostprocessSettings);
     message.Settings = settings;
     EnqueueMessage(message);
 }
 public static MyPostprocessSettings LerpExposure(ref MyPostprocessSettings A, ref MyPostprocessSettings B, float t)
 {
     MyPostprocessSettings C = A;
     C.LuminanceExposure = VRageMath.MathHelper.Lerp(A.LuminanceExposure, B.LuminanceExposure, t);
     return C;
 }