Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
CameraFilterPack_Atmosphere_Rain Class Reference
Inheritance diagram for CameraFilterPack_Atmosphere_Rain:

Public Attributes

Shader SCShader
 
float Fade = 1f
 
float Intensity = 0.5f
 
float DirectionX = 0.12f
 
float Size = 1.5f
 
float Speed = 0.275f
 
float Distortion = 0.05f
 
float StormFlashOnOff = 1f
 

Properties

Material material [get]
 

Private Member Functions

void Start ()
 
void OnRenderImage (RenderTexture sourceTexture, RenderTexture destTexture)
 
void Update ()
 
void OnDisable ()
 

Private Attributes

float TimeX = 1f
 
Material SCMaterial
 
Texture2D Texture2
 

Detailed Description

Definition at line 5 of file CameraFilterPack_Atmosphere_Rain.cs.

Member Function Documentation

◆ OnDisable()

void CameraFilterPack_Atmosphere_Rain.OnDisable ( )
inlineprivate

Definition at line 90 of file CameraFilterPack_Atmosphere_Rain.cs.

91 {
92 if ((bool)SCMaterial)
93 {
94 Object.DestroyImmediate(SCMaterial);
95 }
96 }

References SCMaterial.

◆ OnRenderImage()

void CameraFilterPack_Atmosphere_Rain.OnRenderImage ( RenderTexture  sourceTexture,
RenderTexture  destTexture 
)
inlineprivate

Definition at line 59 of file CameraFilterPack_Atmosphere_Rain.cs.

60 {
61 if (SCShader != null)
62 {
63 TimeX += Time.deltaTime;
64 if (TimeX > 100f)
65 {
66 TimeX = 0f;
67 }
68 material.SetFloat("_TimeX", TimeX);
69 material.SetFloat("_Value", Fade);
70 material.SetFloat("_Value2", Intensity);
71 material.SetFloat("_Value3", DirectionX);
72 material.SetFloat("_Value4", Speed);
73 material.SetFloat("_Value5", Size);
74 material.SetFloat("_Value6", Distortion);
75 material.SetFloat("_Value7", StormFlashOnOff);
76 material.SetVector("_ScreenResolution", new Vector4(sourceTexture.width, sourceTexture.height, 0f, 0f));
77 material.SetTexture("Texture2", Texture2);
78 Graphics.Blit(sourceTexture, destTexture, material);
79 }
80 else
81 {
82 Graphics.Blit(sourceTexture, destTexture);
83 }
84 }

References DirectionX, Distortion, Fade, Intensity, material, SCShader, Size, Speed, StormFlashOnOff, Texture2, and TimeX.

◆ Start()

void CameraFilterPack_Atmosphere_Rain.Start ( )
inlineprivate

Definition at line 49 of file CameraFilterPack_Atmosphere_Rain.cs.

50 {
51 Texture2 = Resources.Load("CameraFilterPack_Atmosphere_Rain_FX") as Texture2D;
52 SCShader = Shader.Find("CameraFilterPack/Atmosphere_Rain");
53 if (!SystemInfo.supportsImageEffects)
54 {
55 base.enabled = false;
56 }
57 }

References SCShader, and Texture2.

◆ Update()

void CameraFilterPack_Atmosphere_Rain.Update ( )
inlineprivate

Definition at line 86 of file CameraFilterPack_Atmosphere_Rain.cs.

87 {
88 }

Member Data Documentation

◆ DirectionX

float CameraFilterPack_Atmosphere_Rain.DirectionX = 0.12f

Definition at line 20 of file CameraFilterPack_Atmosphere_Rain.cs.

Referenced by OnRenderImage().

◆ Distortion

float CameraFilterPack_Atmosphere_Rain.Distortion = 0.05f

Definition at line 29 of file CameraFilterPack_Atmosphere_Rain.cs.

Referenced by OnRenderImage().

◆ Fade

float CameraFilterPack_Atmosphere_Rain.Fade = 1f

Definition at line 14 of file CameraFilterPack_Atmosphere_Rain.cs.

Referenced by OnRenderImage().

◆ Intensity

float CameraFilterPack_Atmosphere_Rain.Intensity = 0.5f

Definition at line 17 of file CameraFilterPack_Atmosphere_Rain.cs.

Referenced by OnRenderImage().

◆ SCMaterial

Material CameraFilterPack_Atmosphere_Rain.SCMaterial
private

Definition at line 11 of file CameraFilterPack_Atmosphere_Rain.cs.

Referenced by OnDisable().

◆ SCShader

Shader CameraFilterPack_Atmosphere_Rain.SCShader

Definition at line 7 of file CameraFilterPack_Atmosphere_Rain.cs.

Referenced by OnRenderImage(), and Start().

◆ Size

float CameraFilterPack_Atmosphere_Rain.Size = 1.5f

Definition at line 23 of file CameraFilterPack_Atmosphere_Rain.cs.

Referenced by OnRenderImage().

◆ Speed

float CameraFilterPack_Atmosphere_Rain.Speed = 0.275f

Definition at line 26 of file CameraFilterPack_Atmosphere_Rain.cs.

Referenced by OnRenderImage().

◆ StormFlashOnOff

float CameraFilterPack_Atmosphere_Rain.StormFlashOnOff = 1f

Definition at line 32 of file CameraFilterPack_Atmosphere_Rain.cs.

Referenced by OnRenderImage().

◆ Texture2

Texture2D CameraFilterPack_Atmosphere_Rain.Texture2
private

Definition at line 34 of file CameraFilterPack_Atmosphere_Rain.cs.

Referenced by OnRenderImage(), and Start().

◆ TimeX

float CameraFilterPack_Atmosphere_Rain.TimeX = 1f
private

Definition at line 9 of file CameraFilterPack_Atmosphere_Rain.cs.

Referenced by OnRenderImage().

Property Documentation

◆ material

Material CameraFilterPack_Atmosphere_Rain.material
getprivate

Definition at line 36 of file CameraFilterPack_Atmosphere_Rain.cs.

37 {
38 get
39 {
40 if (SCMaterial == null)
41 {
43 SCMaterial.hideFlags = HideFlags.HideAndDontSave;
44 }
45 return SCMaterial;
46 }
47 }

Referenced by OnRenderImage().


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