后处理+FEEL完全改进
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
using SLSFramework.General;
|
||||
using Beautify.Universal;
|
||||
|
||||
namespace Cielonos.MainGame.Effects
|
||||
{
|
||||
public partial class ChromaticAberrationSubmodule : PostProcessingSubmoduleBase
|
||||
{
|
||||
public LerpFloat intensity;
|
||||
|
||||
public ChromaticAberrationSubmodule(PostProcessingManager owner) : base(owner)
|
||||
{
|
||||
this.intensity = new LerpFloat(0, 0.05f);
|
||||
}
|
||||
|
||||
public override void Update(float factor)
|
||||
{
|
||||
intensity.Update(factor);
|
||||
if (owner.GetVolumeComponent<Beautify.Universal.Beautify>(out var beautify))
|
||||
{
|
||||
beautify.chromaticAberrationIntensity.value = intensity.currentValue * 0.1f;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public partial class ChromaticAberrationSubmodule
|
||||
{
|
||||
public void ModifyIntensity(float value) => ModifyCurrentValue(intensity, value);
|
||||
public void SetIntensity(float value) => SetCurrentValue(intensity, value);
|
||||
}
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4c4d822e0b008874595c833896ced6b8
|
||||
@@ -1,51 +0,0 @@
|
||||
using SLSFramework.General;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Cielonos.MainGame.Effects
|
||||
{
|
||||
public partial class TonemappingSubmodule : PostProcessingSubmoduleBase
|
||||
{
|
||||
public LerpFloat saturate;
|
||||
public LerpFloat contrast;
|
||||
public LerpFloat brightness;
|
||||
public LerpColor tintColor;
|
||||
|
||||
public TonemappingSubmodule(PostProcessingManager owner) : base(owner)
|
||||
{
|
||||
this.saturate = new LerpFloat(1.2f, 0.05f);
|
||||
this.brightness = new LerpFloat(1f, 0.05f);
|
||||
this.contrast = new LerpFloat(1.15f, 0.05f);
|
||||
this.tintColor = new LerpColor(new Color(0.9411765f, 1, 1), 0.05f);
|
||||
}
|
||||
|
||||
public override void Update(float factor)
|
||||
{
|
||||
saturate.Update(factor);
|
||||
brightness.Update(factor);
|
||||
contrast.Update(factor);
|
||||
tintColor.Update(factor);
|
||||
if(owner.GetVolumeComponent<Beautify.Universal.Beautify>(out var beautify))
|
||||
{
|
||||
beautify.saturate.value = saturate.currentValue;
|
||||
beautify.brightness.value = brightness.currentValue;
|
||||
beautify.contrast.value = contrast.currentValue;
|
||||
beautify.tintColor.value = tintColor.currentValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public partial class TonemappingSubmodule
|
||||
{
|
||||
public void ModifySaturate(float value) => ModifyCurrentValue(saturate, value);
|
||||
public void SetSaturate(float value) => SetCurrentValue(saturate, value);
|
||||
|
||||
public void ModifyBrightness(float value) => ModifyCurrentValue(brightness, value);
|
||||
public void SetBrightness(float value) => SetCurrentValue(brightness, value);
|
||||
|
||||
public void ModifyContrast(float value) => ModifyCurrentValue(contrast, value);
|
||||
public void SetContrast(float value) => SetCurrentValue(contrast, value);
|
||||
|
||||
public void ModifyTintColor(Color value) => ModifyCurrentValue(tintColor, value);
|
||||
public void SetTintColor(Color value) => SetCurrentValue(tintColor, value);
|
||||
}
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b40b17602d6f8fe4f86ca42ae86514e4
|
||||
Reference in New Issue
Block a user