Feel  3.16
The best way to improve your game's feel and make it extra juicy
MoreMountains.Feedbacks.MMF_ShaderGlobal Class Reference

Turns an object active or inactive at the various stages of the feedback More...

Inheritance diagram for MoreMountains.Feedbacks.MMF_ShaderGlobal:
MoreMountains.Feedbacks.MMF_Feedback

Public Types

enum  Modes {
  Modes.SetGlobalColor, Modes.SetGlobalFloat, Modes.SetGlobalInt, Modes.SetGlobalMatrix,
  Modes.SetGlobalTexture, Modes.SetGlobalVector, Modes.EnableKeyword, Modes.DisableKeyword,
  Modes.WarmupAllShaders
}
 sets the inspector color for this feedback More...
 

Public Attributes

Modes Mode = Modes.SetGlobalFloat
 the selected mode for this feedback More...
 
string PropertyName = ""
 the name of the global property More...
 
int PropertyNameID = 0
 the name ID of the property retrieved by Shader.PropertyToID More...
 
Color GlobalColor = Color.yellow
 a global color property for all shaders More...
 
float GlobalFloat = 1f
 a global float property for all shaders More...
 
int GlobalInt = 1
 a global int property for all shaders More...
 
Matrix4x4 GlobalMatrix = Matrix4x4.identity
 a global matrix property for all shaders More...
 
RenderTexture GlobalTexture
 a global texture property for all shaders More...
 
Vector4 GlobalVector
 a global vector property for all shaders More...
 
string Keyword
 a global shader keyword More...
 

Static Public Attributes

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

Protected Member Functions

override void CustomPlayFeedback (Vector3 position, float feedbacksIntensity=1.0f)
 On Play we set our global shader property More...
 
override void CustomRestoreInitialValues ()
 On restore, we restore our initial state More...
 

Protected Attributes

Color _initialColor
 
float _initialFloat
 
int _initialInt
 
Matrix4x4 _initialMatrix
 
RenderTexture _initialTexture
 
Vector4 _initialVector
 

Additional Inherited Members

Detailed Description

Turns an object active or inactive at the various stages of the feedback

Member Enumeration Documentation

◆ Modes

sets the inspector color for this feedback

Enumerator
SetGlobalColor 
SetGlobalFloat 
SetGlobalInt 
SetGlobalMatrix 
SetGlobalTexture 
SetGlobalVector 
EnableKeyword 
DisableKeyword 
WarmupAllShaders 

Member Function Documentation

◆ CustomPlayFeedback()

override void MoreMountains.Feedbacks.MMF_ShaderGlobal.CustomPlayFeedback ( Vector3  position,
float  feedbacksIntensity = 1.0f 
)
protectedvirtual

On Play we set our global shader property

Parameters
position
feedbacksIntensity

Implements MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomRestoreInitialValues()

override void MoreMountains.Feedbacks.MMF_ShaderGlobal.CustomRestoreInitialValues ( )
protectedvirtual

On restore, we restore our initial state

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

Member Data Documentation

◆ _initialColor

Color MoreMountains.Feedbacks.MMF_ShaderGlobal._initialColor
protected

◆ _initialFloat

float MoreMountains.Feedbacks.MMF_ShaderGlobal._initialFloat
protected

◆ _initialInt

int MoreMountains.Feedbacks.MMF_ShaderGlobal._initialInt
protected

◆ _initialMatrix

Matrix4x4 MoreMountains.Feedbacks.MMF_ShaderGlobal._initialMatrix
protected

◆ _initialTexture

RenderTexture MoreMountains.Feedbacks.MMF_ShaderGlobal._initialTexture
protected

◆ _initialVector

Vector4 MoreMountains.Feedbacks.MMF_ShaderGlobal._initialVector
protected

◆ FeedbackTypeAuthorized

bool MoreMountains.Feedbacks.MMF_ShaderGlobal.FeedbackTypeAuthorized = true
static

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

◆ GlobalColor

Color MoreMountains.Feedbacks.MMF_ShaderGlobal.GlobalColor = Color.yellow

a global color property for all shaders

◆ GlobalFloat

float MoreMountains.Feedbacks.MMF_ShaderGlobal.GlobalFloat = 1f

a global float property for all shaders

◆ GlobalInt

int MoreMountains.Feedbacks.MMF_ShaderGlobal.GlobalInt = 1

a global int property for all shaders

◆ GlobalMatrix

Matrix4x4 MoreMountains.Feedbacks.MMF_ShaderGlobal.GlobalMatrix = Matrix4x4.identity

a global matrix property for all shaders

◆ GlobalTexture

RenderTexture MoreMountains.Feedbacks.MMF_ShaderGlobal.GlobalTexture

a global texture property for all shaders

◆ GlobalVector

Vector4 MoreMountains.Feedbacks.MMF_ShaderGlobal.GlobalVector

a global vector property for all shaders

◆ Keyword

string MoreMountains.Feedbacks.MMF_ShaderGlobal.Keyword

a global shader keyword

◆ Mode

Modes MoreMountains.Feedbacks.MMF_ShaderGlobal.Mode = Modes.SetGlobalFloat

the selected mode for this feedback

◆ PropertyName

string MoreMountains.Feedbacks.MMF_ShaderGlobal.PropertyName = ""

the name of the global property

◆ PropertyNameID

int MoreMountains.Feedbacks.MMF_ShaderGlobal.PropertyNameID = 0

the name ID of the property retrieved by Shader.PropertyToID


The documentation for this class was generated from the following file: