chore: initial commit
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
#if MM_POSTPROCESSING
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering.PostProcessing;
|
||||
|
||||
namespace MoreMountains.Feedbacks
|
||||
{
|
||||
[AddComponentMenu("More Mountains/Springs/MMSpringBloomIntensity")]
|
||||
public class MMSpringBloomIntensity : MMSpringFloatComponent<PostProcessVolume>
|
||||
{
|
||||
protected Bloom _bloom;
|
||||
|
||||
protected override void Initialization()
|
||||
{
|
||||
if (Target == null)
|
||||
{
|
||||
Target = this.gameObject.GetComponent<PostProcessVolume>();
|
||||
}
|
||||
Target.profile.TryGetSettings(out _bloom);
|
||||
base.Initialization();
|
||||
}
|
||||
|
||||
public override float TargetFloat
|
||||
{
|
||||
get => _bloom.intensity;
|
||||
set => _bloom.intensity.Override(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user