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
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e65f2e076950e5b4e87408581f939749
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,29 @@
|
||||
#if MM_POSTPROCESSING
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering.PostProcessing;
|
||||
|
||||
namespace MoreMountains.Feedbacks
|
||||
{
|
||||
[AddComponentMenu("More Mountains/Springs/MMSpringChromaticAberrationIntensity")]
|
||||
public class MMSpringChromaticAberrationIntensity : MMSpringFloatComponent<PostProcessVolume>
|
||||
{
|
||||
protected ChromaticAberration _chromaticAberration;
|
||||
|
||||
protected override void Initialization()
|
||||
{
|
||||
if (Target == null)
|
||||
{
|
||||
Target = this.gameObject.GetComponent<PostProcessVolume>();
|
||||
}
|
||||
Target.profile.TryGetSettings(out _chromaticAberration);
|
||||
base.Initialization();
|
||||
}
|
||||
|
||||
public override float TargetFloat
|
||||
{
|
||||
get => _chromaticAberration.intensity;
|
||||
set => _chromaticAberration.intensity.Override(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 05b2a6b602b3ef04c90ed55c3fa03450
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,29 @@
|
||||
#if MM_POSTPROCESSING
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering.PostProcessing;
|
||||
|
||||
namespace MoreMountains.Feedbacks
|
||||
{
|
||||
[AddComponentMenu("More Mountains/Springs/MMSpringColorGradingContrast")]
|
||||
public class MMSpringColorGradingContrast : MMSpringFloatComponent<PostProcessVolume>
|
||||
{
|
||||
protected ColorGrading _colorGrading;
|
||||
|
||||
protected override void Initialization()
|
||||
{
|
||||
if (Target == null)
|
||||
{
|
||||
Target = this.gameObject.GetComponent<PostProcessVolume>();
|
||||
}
|
||||
Target.profile.TryGetSettings(out _colorGrading);
|
||||
base.Initialization();
|
||||
}
|
||||
|
||||
public override float TargetFloat
|
||||
{
|
||||
get => _colorGrading.contrast;
|
||||
set => _colorGrading.contrast.Override(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 273314aadc2d09c4b8f7b497c86f6d3a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,29 @@
|
||||
#if MM_POSTPROCESSING
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering.PostProcessing;
|
||||
|
||||
namespace MoreMountains.Feedbacks
|
||||
{
|
||||
[AddComponentMenu("More Mountains/Springs/MMSpringColorGradingHueShift")]
|
||||
public class MMSpringColorGradingHueShift : MMSpringFloatComponent<PostProcessVolume>
|
||||
{
|
||||
protected ColorGrading _colorGrading;
|
||||
|
||||
protected override void Initialization()
|
||||
{
|
||||
if (Target == null)
|
||||
{
|
||||
Target = this.gameObject.GetComponent<PostProcessVolume>();
|
||||
}
|
||||
Target.profile.TryGetSettings(out _colorGrading);
|
||||
base.Initialization();
|
||||
}
|
||||
|
||||
public override float TargetFloat
|
||||
{
|
||||
get => _colorGrading.hueShift;
|
||||
set => _colorGrading.hueShift.Override(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0cd46e2eb52b6f14aaed1ac0024deeeb
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,29 @@
|
||||
#if MM_POSTPROCESSING
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering.PostProcessing;
|
||||
|
||||
namespace MoreMountains.Feedbacks
|
||||
{
|
||||
[AddComponentMenu("More Mountains/Springs/MMSpringColorGradingSaturation")]
|
||||
public class MMSpringColorGradingSaturation : MMSpringFloatComponent<PostProcessVolume>
|
||||
{
|
||||
protected ColorGrading _colorGrading;
|
||||
|
||||
protected override void Initialization()
|
||||
{
|
||||
if (Target == null)
|
||||
{
|
||||
Target = this.gameObject.GetComponent<PostProcessVolume>();
|
||||
}
|
||||
Target.profile.TryGetSettings(out _colorGrading);
|
||||
base.Initialization();
|
||||
}
|
||||
|
||||
public override float TargetFloat
|
||||
{
|
||||
get => _colorGrading.saturation;
|
||||
set => _colorGrading.saturation.Override(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4cafaf96adab44845be91a12c573cf50
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,29 @@
|
||||
#if MM_POSTPROCESSING
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering.PostProcessing;
|
||||
|
||||
namespace MoreMountains.Feedbacks
|
||||
{
|
||||
[AddComponentMenu("More Mountains/Springs/MMSpringColorGradingTemperature")]
|
||||
public class MMSpringColorGradingTemperature : MMSpringFloatComponent<PostProcessVolume>
|
||||
{
|
||||
protected ColorGrading _colorGrading;
|
||||
|
||||
protected override void Initialization()
|
||||
{
|
||||
if (Target == null)
|
||||
{
|
||||
Target = this.gameObject.GetComponent<PostProcessVolume>();
|
||||
}
|
||||
Target.profile.TryGetSettings(out _colorGrading);
|
||||
base.Initialization();
|
||||
}
|
||||
|
||||
public override float TargetFloat
|
||||
{
|
||||
get => _colorGrading.temperature;
|
||||
set => _colorGrading.temperature.Override(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: dc41dad25c8ecab4b8dba885fea5e5c9
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,29 @@
|
||||
#if MM_POSTPROCESSING
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering.PostProcessing;
|
||||
|
||||
namespace MoreMountains.Feedbacks
|
||||
{
|
||||
[AddComponentMenu("More Mountains/Springs/MMSpringColorGradingTint")]
|
||||
public class MMSpringColorGradingTint : MMSpringFloatComponent<PostProcessVolume>
|
||||
{
|
||||
protected ColorGrading _colorGrading;
|
||||
|
||||
protected override void Initialization()
|
||||
{
|
||||
if (Target == null)
|
||||
{
|
||||
Target = this.gameObject.GetComponent<PostProcessVolume>();
|
||||
}
|
||||
Target.profile.TryGetSettings(out _colorGrading);
|
||||
base.Initialization();
|
||||
}
|
||||
|
||||
public override float TargetFloat
|
||||
{
|
||||
get => _colorGrading.tint;
|
||||
set => _colorGrading.tint.Override(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f122798344263f34ea0ec3c27298c57a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,29 @@
|
||||
#if MM_POSTPROCESSING
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering.PostProcessing;
|
||||
|
||||
namespace MoreMountains.Feedbacks
|
||||
{
|
||||
[AddComponentMenu("More Mountains/Springs/MMSpringDepthOfFieldFocusDistance")]
|
||||
public class MMSpringDepthOfFieldFocusDistance : MMSpringFloatComponent<PostProcessVolume>
|
||||
{
|
||||
protected DepthOfField _depthOfField;
|
||||
|
||||
protected override void Initialization()
|
||||
{
|
||||
if (Target == null)
|
||||
{
|
||||
Target = this.gameObject.GetComponent<PostProcessVolume>();
|
||||
}
|
||||
Target.profile.TryGetSettings(out _depthOfField);
|
||||
base.Initialization();
|
||||
}
|
||||
|
||||
public override float TargetFloat
|
||||
{
|
||||
get => _depthOfField.focusDistance;
|
||||
set => _depthOfField.focusDistance.Override(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: df7eb734a87468a40a9194761576a513
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,29 @@
|
||||
#if MM_POSTPROCESSING
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering.PostProcessing;
|
||||
|
||||
namespace MoreMountains.Feedbacks
|
||||
{
|
||||
[AddComponentMenu("More Mountains/Springs/MMSpringLensDistortionIntensity")]
|
||||
public class MMSpringLensDistortionIntensity : MMSpringFloatComponent<PostProcessVolume>
|
||||
{
|
||||
protected LensDistortion _lensDistortion;
|
||||
|
||||
protected override void Initialization()
|
||||
{
|
||||
if (Target == null)
|
||||
{
|
||||
Target = this.gameObject.GetComponent<PostProcessVolume>();
|
||||
}
|
||||
Target.profile.TryGetSettings(out _lensDistortion);
|
||||
base.Initialization();
|
||||
}
|
||||
|
||||
public override float TargetFloat
|
||||
{
|
||||
get => _lensDistortion.intensity;
|
||||
set => _lensDistortion.intensity.Override(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3ede055534d39df4bad9ee11f7ab2a13
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,29 @@
|
||||
#if MM_POSTPROCESSING
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering.PostProcessing;
|
||||
|
||||
namespace MoreMountains.Feedbacks
|
||||
{
|
||||
[AddComponentMenu("More Mountains/Springs/MMSpringMotionBlurShutterAngle")]
|
||||
public class MMSpringMotionBlurShutterAngle : MMSpringFloatComponent<PostProcessVolume>
|
||||
{
|
||||
protected MotionBlur _motionBlur;
|
||||
|
||||
protected override void Initialization()
|
||||
{
|
||||
if (Target == null)
|
||||
{
|
||||
Target = this.gameObject.GetComponent<PostProcessVolume>();
|
||||
}
|
||||
Target.profile.TryGetSettings(out _motionBlur);
|
||||
base.Initialization();
|
||||
}
|
||||
|
||||
public override float TargetFloat
|
||||
{
|
||||
get => _motionBlur.shutterAngle;
|
||||
set => _motionBlur.shutterAngle.Override(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 24ee678719e0c084eae35248ed08c192
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,29 @@
|
||||
using UnityEngine;
|
||||
#if MM_POSTPROCESSING
|
||||
using UnityEngine.Rendering.PostProcessing;
|
||||
|
||||
namespace MoreMountains.Feedbacks
|
||||
{
|
||||
[AddComponentMenu("More Mountains/Springs/MMSpringVignetteCenter")]
|
||||
public class MMSpringVignetteCenter : MMSpringVector2Component<PostProcessVolume>
|
||||
{
|
||||
protected Vignette _vignette;
|
||||
|
||||
protected override void Initialization()
|
||||
{
|
||||
if (Target == null)
|
||||
{
|
||||
Target = this.gameObject.GetComponent<PostProcessVolume>();
|
||||
}
|
||||
Target.profile.TryGetSettings(out _vignette);
|
||||
base.Initialization();
|
||||
}
|
||||
|
||||
public override Vector2 TargetVector2
|
||||
{
|
||||
get => _vignette.center;
|
||||
set => _vignette.center.Override(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c4cd9f982e331c347a78bcae05117b99
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
29
Assets/Feel/MMFeedbacks/MMFeedbacksForThirdParty/PostProcessing/Springs/MMSpringVignetteColor.cs
vendored
Normal file
29
Assets/Feel/MMFeedbacks/MMFeedbacksForThirdParty/PostProcessing/Springs/MMSpringVignetteColor.cs
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
using UnityEngine;
|
||||
#if MM_POSTPROCESSING
|
||||
using UnityEngine.Rendering.PostProcessing;
|
||||
|
||||
namespace MoreMountains.Feedbacks
|
||||
{
|
||||
[AddComponentMenu("More Mountains/Springs/MMSpringVignetteColor")]
|
||||
public class MMSpringVignetteColor : MMSpringColorComponent<PostProcessVolume>
|
||||
{
|
||||
protected Vignette _vignette;
|
||||
|
||||
protected override void Initialization()
|
||||
{
|
||||
if (Target == null)
|
||||
{
|
||||
Target = this.gameObject.GetComponent<PostProcessVolume>();
|
||||
}
|
||||
Target.profile.TryGetSettings(out _vignette);
|
||||
base.Initialization();
|
||||
}
|
||||
|
||||
public override Color TargetColor
|
||||
{
|
||||
get => _vignette.color;
|
||||
set => _vignette.color.Override(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 17b834b8463b2c344871f84ca5852a03
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,29 @@
|
||||
#if MM_POSTPROCESSING
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering.PostProcessing;
|
||||
|
||||
namespace MoreMountains.Feedbacks
|
||||
{
|
||||
[AddComponentMenu("More Mountains/Springs/MMSpringVignetteIntensity")]
|
||||
public class MMSpringVignetteIntensity : MMSpringFloatComponent<PostProcessVolume>
|
||||
{
|
||||
protected Vignette _vignette;
|
||||
|
||||
protected override void Initialization()
|
||||
{
|
||||
if (Target == null)
|
||||
{
|
||||
Target = this.gameObject.GetComponent<PostProcessVolume>();
|
||||
}
|
||||
Target.profile.TryGetSettings(out _vignette);
|
||||
base.Initialization();
|
||||
}
|
||||
|
||||
public override float TargetFloat
|
||||
{
|
||||
get => _vignette.intensity;
|
||||
set => _vignette.intensity.Override(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 33c059583b0a7e44ebd9aa776e815cce
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user