TopDown Engine v4.5
Loading...
Searching...
No Matches
MoreMountains.FeedbacksForThirdParty.MMF_Vignette_HDRP Class Reference

This feedback allows you to control HDRP vignette intensity over time. It requires you have in your scene an object with a Volume with Vignette active, and a MMVignetteShaker_HDRP component. More...

Inheritance diagram for MoreMountains.FeedbacksForThirdParty.MMF_Vignette_HDRP:
MoreMountains.Feedbacks.MMF_Feedback

Public Member Functions

override void AutomaticShakerSetup ()
 Automaticall sets up the post processing profile and shaker.

Public Attributes

float Duration = 0.2f
 the duration of the shake, in seconds
bool ResetShakerValuesAfterShake = true
 whether or not to reset shaker values after shake
bool ResetTargetValuesAfterShake = true
 whether or not to reset the target's values after shake
AnimationCurve Intensity = new AnimationCurve(new Keyframe(0, 0), new Keyframe(0.5f, 1), new Keyframe(1, 0))
 the curve to animate the intensity on
float RemapIntensityZero = 0f
 the value to remap the curve's zero to
float RemapIntensityOne = 1.0f
 the value to remap the curve's one to
bool RelativeIntensity = false
 whether or not to add to the initial intensity
bool InterpolateColor = false
 whether or not to also animate the vignette's color
AnimationCurve ColorCurve = new AnimationCurve(new Keyframe(0, 0), new Keyframe(0.05f, 1f), new Keyframe(0.95f, 1), new Keyframe(1, 0))
 the curve to animate the color on
float RemapColorZero = 0f
 the value to remap the curve's 0 to
float RemapColorOne = 1f
 the value to remap the curve's 1 to
Color TargetColor = Color.red
 the color to lerp towards

Static Public Attributes

static bool FeedbackTypeAuthorized = true
 a static bool used to disable all feedbacks of this type at once

Protected Member Functions

override void CustomPlayFeedback (Vector3 position, float feedbacksIntensity=1.0f)
 Triggers a vignette shake.
override void CustomStopFeedback (Vector3 position, float feedbacksIntensity=1)
 On stop we stop our transition.
override void CustomRestoreInitialValues ()
 On restore, we put our object back at its initial position.

Properties

override float FeedbackDuration [get, set]
 sets the inspector color for this feedback
override bool HasChannel [get]
override bool HasRandomness [get]

Additional Inherited Members

Detailed Description

This feedback allows you to control HDRP vignette intensity over time. It requires you have in your scene an object with a Volume with Vignette active, and a MMVignetteShaker_HDRP component.

Member Function Documentation

◆ AutomaticShakerSetup()

override void MoreMountains.FeedbacksForThirdParty.MMF_Vignette_HDRP.AutomaticShakerSetup ( )
virtual

Automaticall sets up the post processing profile and shaker.

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomPlayFeedback()

override void MoreMountains.FeedbacksForThirdParty.MMF_Vignette_HDRP.CustomPlayFeedback ( Vector3 position,
float feedbacksIntensity = 1::0f )
protected

Triggers a vignette shake.

Parameters
position
attenuation

◆ CustomRestoreInitialValues()

override void MoreMountains.FeedbacksForThirdParty.MMF_Vignette_HDRP.CustomRestoreInitialValues ( )
protectedvirtual

On restore, we put our object back at its initial position.

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomStopFeedback()

override void MoreMountains.FeedbacksForThirdParty.MMF_Vignette_HDRP.CustomStopFeedback ( Vector3 position,
float feedbacksIntensity = 1 )
protectedvirtual

On stop we stop our transition.

Parameters
position
feedbacksIntensity

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

Member Data Documentation

◆ ColorCurve

AnimationCurve MoreMountains.FeedbacksForThirdParty.MMF_Vignette_HDRP.ColorCurve = new AnimationCurve(new Keyframe(0, 0), new Keyframe(0.05f, 1f), new Keyframe(0.95f, 1), new Keyframe(1, 0))

the curve to animate the color on

◆ Duration

float MoreMountains.FeedbacksForThirdParty.MMF_Vignette_HDRP.Duration = 0.2f

the duration of the shake, in seconds

◆ FeedbackTypeAuthorized

bool MoreMountains.FeedbacksForThirdParty.MMF_Vignette_HDRP.FeedbackTypeAuthorized = true
static

a static bool used to disable all feedbacks of this type at once

◆ Intensity

AnimationCurve MoreMountains.FeedbacksForThirdParty.MMF_Vignette_HDRP.Intensity = new AnimationCurve(new Keyframe(0, 0), new Keyframe(0.5f, 1), new Keyframe(1, 0))

the curve to animate the intensity on

◆ InterpolateColor

bool MoreMountains.FeedbacksForThirdParty.MMF_Vignette_HDRP.InterpolateColor = false

whether or not to also animate the vignette's color

◆ RelativeIntensity

bool MoreMountains.FeedbacksForThirdParty.MMF_Vignette_HDRP.RelativeIntensity = false

whether or not to add to the initial intensity

◆ RemapColorOne

float MoreMountains.FeedbacksForThirdParty.MMF_Vignette_HDRP.RemapColorOne = 1f

the value to remap the curve's 1 to

◆ RemapColorZero

float MoreMountains.FeedbacksForThirdParty.MMF_Vignette_HDRP.RemapColorZero = 0f

the value to remap the curve's 0 to

◆ RemapIntensityOne

float MoreMountains.FeedbacksForThirdParty.MMF_Vignette_HDRP.RemapIntensityOne = 1.0f

the value to remap the curve's one to

◆ RemapIntensityZero

float MoreMountains.FeedbacksForThirdParty.MMF_Vignette_HDRP.RemapIntensityZero = 0f

the value to remap the curve's zero to

◆ ResetShakerValuesAfterShake

bool MoreMountains.FeedbacksForThirdParty.MMF_Vignette_HDRP.ResetShakerValuesAfterShake = true

whether or not to reset shaker values after shake

◆ ResetTargetValuesAfterShake

bool MoreMountains.FeedbacksForThirdParty.MMF_Vignette_HDRP.ResetTargetValuesAfterShake = true

whether or not to reset the target's values after shake

◆ TargetColor

Color MoreMountains.FeedbacksForThirdParty.MMF_Vignette_HDRP.TargetColor = Color.red

the color to lerp towards

Property Documentation

◆ FeedbackDuration

override float MoreMountains.FeedbacksForThirdParty.MMF_Vignette_HDRP.FeedbackDuration
getset

sets the inspector color for this feedback

the duration of this feedback is the duration of the shake

◆ HasChannel

override bool MoreMountains.FeedbacksForThirdParty.MMF_Vignette_HDRP.HasChannel
get

◆ HasRandomness

override bool MoreMountains.FeedbacksForThirdParty.MMF_Vignette_HDRP.HasRandomness
get

The documentation for this class was generated from the following file:
  • H:/Code/MoreMountains/topdownengine/Assets/TopDownEngine/ThirdParty/MoreMountains/MMFeedbacks/MMFeedbacksForThirdParty/HDRP/Feedbacks/MMF_Vignette_HDRP.cs