static void Draw_Settings_SSAO(GraphicSystem data, bool draw = true) { if (!data.SSAO) { return; } for (int i = 0; i < _ao.Count; i++) { AmbientOcclusion obj = _ao[i]; string name = $"[Amb.Occ.{i}] "; obj.enabled.value = Field($"{name}Enabled", obj.enabled.value, draw); obj.ambientOnly.value = Field($"{name}Ambient Only", obj.ambientOnly.value, draw); obj.blurTolerance.value = Field($"{name}Blur Tolerance", obj.blurTolerance.value, draw); obj.directLightingStrength.value = Field($"{name}Direct Lighting Strength", obj.directLightingStrength.value, draw); obj.intensity.value = Field($"{name}Intensity", obj.intensity.value, draw); obj.noiseFilterTolerance.value = Field($"{name}Noise Filter Tolerance", obj.noiseFilterTolerance.value, draw); obj.radius.value = Field($"{name}Radius", obj.radius.value, draw); obj.thicknessModifier.value = Field($"{name}Thickness Modifier", obj.thicknessModifier, draw); obj.upsampleTolerance.value = Field($"{name}Upsample Tolerance", obj.upsampleTolerance, draw); obj.mode.value = Field($"{name}Mode", obj.mode.value, draw); obj.quality.value = Field($"{name}Quality", obj.quality.value, draw); } }
private static void GraphicSystem_SetMaxCharas(GraphicSystem __instance) { bool[] charasEntry = new bool[girlCount]; for (int i = 0; i < girlCount; i++) { charasEntry[i] = true; } __instance.MaxCharaNum = girlCount; __instance.CharasEntry = charasEntry; }
static void Draw_Settings(bool draw = true) { GraphicSystem data = Config.GraphicData; if (effector != null) { Draw_Settings_Bloom(data, draw); Draw_Settings_SSAO(data, draw); Draw_Settings_SSR(data, draw); Draw_Settings_DepthOfField(data, draw); Draw_Settings_Atmospheric(data, draw); } }
static void Draw_Settings_Atmospheric(GraphicSystem data, bool draw = true) { if (!data.Atmospheric || Map.Instance.Simulator == null) { return; } EnviroSky sky = Map.Instance.Simulator.EnviroSky; EnviroFogSettings fog = sky.fogSettings; EnviroLightshafts light = sky.LightShafts; fog.distanceFog = Field("Distance Fog", fog.distanceFog, draw); fog.heightFog = Field("Height Fog", fog.heightFog, draw); sky.volumeLighting = Field("Volume Lighting", sky.volumeLighting, draw); light.sunLightShafts = Field("Sun Light Shafts", light.sunLightShafts, draw); light.moonLightShafts = Field("Moon Light Shafts", light.moonLightShafts, draw); }
private void Start() { this._rigidbody.set_sleepThreshold(-1f); this.OnStart(); ObservableExtensions.Subscribe <long>(Observable.TakeUntilDestroy <long>((IObservable <M0>)Observable.EveryUpdate(), (Component)this), (System.Action <M0>)(_ => { if (Object.op_Inequality((Object)this._rigidbody, (Object)null) && this._rigidbody.IsSleeping()) { this._rigidbody.WakeUp(); } GraphicSystem graphicData = Manager.Config.GraphicData; if (Object.op_Equality((Object)this.Controller, (Object)null) || graphicData == null) { return; } this.Controller.FaceLightActive = graphicData.FaceLight; })); }
static void Draw_Settings_DepthOfField(GraphicSystem data, bool draw = true) { if (!data.DepthOfField) { return; } for (int i = 0; i < _dof.Count; i++) { DepthOfField obj = _dof[i]; string name = $"[DoF{i}] "; obj.enabled.value = Field($"{name}Enabled", obj.enabled.value, draw); obj.aperture.value = Field($"{name}Aperture", obj.aperture.value, draw); obj.focalLength.value = Field($"{name}Focal Length", obj.focalLength.value, draw); obj.focusDistance.value = Field($"{name}Focus Distance", obj.focusDistance.value, draw); obj.kernelSize.value = Field($"{name}Kernel Size", obj.kernelSize.value, draw); } }
static void Draw_Settings_SSR(GraphicSystem data, bool draw = true) { if (!data.SSR) { return; } for (int i = 0; i < _ssr.Count; i++) { ScreenSpaceReflections obj = _ssr[i]; string name = $"[SSR{i}] "; obj.enabled.value = Field($"{name}Enabled", obj.enabled.value, draw); obj.distanceFade.value = Field($"{name}Distance Fade", obj.distanceFade.value, draw); obj.maximumIterationCount.value = Field($"{name}Max Iteration Count", obj.maximumIterationCount, draw); obj.maximumMarchDistance.value = Field($"{name}Max March Distance", obj.maximumMarchDistance.value, draw); obj.thickness.value = Field($"{name}Thickness", obj.thickness.value, draw); obj.vignette.value = Field($"{name}Vignette", obj.vignette.value, draw); obj.resolution.value = Field($"{name}Resolution", obj.resolution.value, draw); obj.preset.value = Field($"{name}Preset", obj.preset.value, draw); } }
public void Render_NoArgs_Rendered() { try { using (var output = new StringWriter()) { Console.SetOut(output); var target = new GraphicSystem(); target.Initialize(); target.Draw(5, 10, '1'.Blue()); target.Render(); target.Draw(5, 10, '2'.Red()); target.Render(); } } catch (IOException) { // Is runnning in a no console environment? } }
static void Draw_Settings_Bloom(GraphicSystem data, bool draw = true) { if (!data.Bloom) { return; } for (int i = 0; i < _bloom.Count; i++) { Bloom obj = _bloom[i]; string name = $"[Bloom{i}] "; obj.enabled.value = Field($"{name}Enabled", obj.enabled.value, draw); obj.fastMode.value = Field($"{name}Fast Mode", obj.fastMode.value, draw); obj.anamorphicRatio.value = Field($"{name}Anamorphic Ratio", obj.anamorphicRatio.value, draw); obj.clamp.value = Field($"{name}Clamp", obj.clamp.value, draw); obj.diffusion.value = Field($"{name}Diffusion", obj.diffusion.value, draw); obj.dirtIntensity.value = Field($"{name}Dirt Intensity", obj.dirtIntensity.value, draw); obj.intensity.value = Field($"{name}Intensity", obj.intensity.value, draw); obj.softKnee.value = Field($"{name}Soft Knee", obj.softKnee.value, draw); obj.threshold.value = Field($"{name}Threshold", obj.threshold.value, draw); } }
public static void GraphicSystem_Read_SetMaxCharas(GraphicSystem __instance) => GraphicSystem_SetMaxCharas(__instance);
private void FormMain_Load(object sender, EventArgs e) { ViewMain.FormMain = this; FormMainGraphic = new GraphicSystem(Graphic); }
public static void GraphicSystem_Write_SetMaxCharas_Post(GraphicSystem __instance) => __instance.MaxCharaNum = girlCount;
public static void GraphicSystem_Write_SetMaxCharas_Pre(GraphicSystem __instance) => __instance.MaxCharaNum = defaultGirlCount;