TopDown Engine v4.5
Loading...
Searching...
No Matches
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 {
  SetGlobalColor , SetGlobalFloat , SetGlobalInt , SetGlobalMatrix ,
  SetGlobalTexture , SetGlobalVector , EnableKeyword , DisableKeyword ,
  WarmupAllShaders
}
 sets the inspector color for this feedback More...

Public Attributes

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

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)
 On Play we set our global shader property.
override void CustomRestoreInitialValues ()
 On restore, we restore our initial state.

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 )
protected

On Play we set our global shader property.

Parameters
position
feedbacksIntensity

◆ 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:
  • H:/Code/MoreMountains/topdownengine/Assets/TopDownEngine/ThirdParty/MoreMountains/MMFeedbacks/MMFeedbacks/Feedbacks/MMF_ShaderGlobal.cs