Infinite Runner Engine v1.9
Public Types | Public Attributes | Static Public Attributes | Protected Member Functions | List of all members
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 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...
 

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.

Member Data Documentation

◆ 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: