public static void SetDefaults() { MySolarSystemArea defaults = MySolarSystemConstants.GetDefaultArea(); SunProperties = defaults.SectorData.SunProperties; FogProperties = defaults.SectorData.FogProperties; DebrisProperties = defaults.SectorData.DebrisProperties; ImpostorProperties = defaults.SectorData.ImpostorProperties; ParticleDustProperties = defaults.SectorData.ParticleDustProperties; GodRaysProperties = defaults.SectorData.GodRaysProperties; BackgroundTexture = defaults.SectorData.BackgroundTexture; }
/// <param name="interpolator">0 - use this object, 1 - use other object</param> public MyDebrisProperties InterpolateWith(MyDebrisProperties otherProperties, float interpolator) { var result = new MyDebrisProperties(); result.DistanceBetween = MathHelper.Lerp(DistanceBetween, otherProperties.DistanceBetween, interpolator); result.CountInDirectionHalf = MathHelper.Lerp(CountInDirectionHalf, otherProperties.CountInDirectionHalf, interpolator); result.MaxDistance = MathHelper.Lerp(MaxDistance, otherProperties.MaxDistance, interpolator); result.FullScaleDistance = MathHelper.Lerp(FullScaleDistance, otherProperties.FullScaleDistance, interpolator); result.DebrisEnumValues = DebrisEnumValues; result.DebrisVoxelMaterials = DebrisVoxelMaterials; return(result); }
/// <param name="interpolator">0 - use this object, 1 - use other object</param> public MyDebrisProperties InterpolateWith(MyDebrisProperties otherProperties, float interpolator) { var result = new MyDebrisProperties(); result.DistanceBetween = MathHelper.Lerp(DistanceBetween, otherProperties.DistanceBetween, interpolator); result.CountInDirectionHalf = MathHelper.Lerp(CountInDirectionHalf, otherProperties.CountInDirectionHalf, interpolator); result.MaxDistance = MathHelper.Lerp(MaxDistance, otherProperties.MaxDistance, interpolator); result.FullScaleDistance = MathHelper.Lerp(FullScaleDistance, otherProperties.FullScaleDistance, interpolator); result.DebrisEnumValues = DebrisEnumValues; result.DebrisVoxelMaterials = DebrisVoxelMaterials; return result; }