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_EnvironmentDefinition objBuilder = (MyObjectBuilder_EnvironmentDefinition)builder; FogProperties = objBuilder.FogProperties; SunProperties = objBuilder.SunProperties; PostProcessSettings = objBuilder.PostProcessSettings; SSAOSettings = objBuilder.SSAOSettings; HBAOSettings = objBuilder.HBAOSettings; ShadowSettings.CopyFrom(objBuilder.ShadowSettings); NewPipelineSettings.CopyFrom(objBuilder.NewPipelineSettings); MaterialsSettings.CopyFrom(objBuilder.MaterialsSettings); 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; EnvironmentalParticles = objBuilder.EnvironmentalParticles; }
protected override void Init(MyObjectBuilder_DefinitionBase builder) { base.Init(builder); MyObjectBuilder_EnvironmentDefinition definition = (MyObjectBuilder_EnvironmentDefinition)builder; this.FogProperties = definition.FogProperties; this.PlanetProperties = definition.PlanetProperties; this.SunProperties = definition.SunProperties; this.PostProcessSettings = definition.PostProcessSettings; this.SSAOSettings = definition.SSAOSettings; this.HBAOSettings = definition.HBAOSettings; this.ShadowSettings.CopyFrom(definition.ShadowSettings); this.LowLoddingSettings.CopyFrom(definition.LowLoddingSettings); this.MediumLoddingSettings.CopyFrom(definition.MediumLoddingSettings); this.HighLoddingSettings.CopyFrom(definition.HighLoddingSettings); this.ExtremeLoddingSettings.CopyFrom(definition.ExtremeLoddingSettings); this.SmallShipMaxSpeed = definition.SmallShipMaxSpeed; this.LargeShipMaxSpeed = definition.LargeShipMaxSpeed; this.SmallShipMaxAngularSpeed = definition.SmallShipMaxAngularSpeed; this.LargeShipMaxAngularSpeed = definition.LargeShipMaxAngularSpeed; this.ContourHighlightColor = new Color(definition.ContourHighlightColor); this.ContourHighlightThickness = definition.ContourHighlightThickness; this.HighlightPulseInSeconds = definition.HighlightPulseInSeconds; this.EnvironmentTexture = definition.EnvironmentTexture; this.EnvironmentOrientation = definition.EnvironmentOrientation; this.EnvironmentalParticles = definition.EnvironmentalParticles; }
public void OnInit() { RegisterCommands(); preTamperSettings = MyPostprocessSettingsWrapper.Settings; SetMaxFPS(HaEHamTweaks.config.maxFPS); MySession.OnLoading += MySession_OnLoading; ApplyLightingPatch(); }
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); }
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; }