Elin Modding Docs Doc
Loading...
Searching...
No Matches
RefractionProfile.cs
1using System;
2using System.Runtime.CompilerServices;
3using UnityEngine;
4
5// Token: 0x0200016F RID: 367
7{
8 // Token: 0x06000ABE RID: 2750 RVA: 0x00042606 File Offset: 0x00040806
9 public static RefractionProfile Get(string id)
10 {
11 return Resources.Load<RefractionProfile>("Scene/Profile/Refraction/" + id);
12 }
13
14 // Token: 0x06000ABF RID: 2751 RVA: 0x00042618 File Offset: 0x00040818
15 public static void Apply(string id)
16 {
17 RefractionProfile.Get(id).Apply();
18 }
19
20 // Token: 0x06000AC0 RID: 2752 RVA: 0x00042628 File Offset: 0x00040828
21 public void Apply()
22 {
23 BaseTileMap tileMap = EClass.scene.screenElin.tileMap;
24 this.<Apply>g__Set|6_0(tileMap.passFloorWater.mat);
25 this.<Apply>g__Set|6_0(tileMap.passLiquid.mat);
26 this.<Apply>g__Set|6_0(tileMap.passAutoTileWater.mat);
27 }
28
29 // Token: 0x06000AC2 RID: 2754 RVA: 0x00042680 File Offset: 0x00040880
30 [CompilerGenerated]
31 private void <Apply>g__Set|6_0(Material mat)
32 {
33 mat.SetVector("_GrabAnime", this.grabAnime);
34 mat.SetVector("_GrabPos", this.grabPos);
35 mat.SetTexture("_BumpTex", this.tex);
36 }
37
38 // Token: 0x040009D3 RID: 2515
39 public Texture2D tex;
40
41 // Token: 0x040009D4 RID: 2516
42 public float transparency;
43
44 // Token: 0x040009D5 RID: 2517
45 public Vector4 grabAnime;
46
47 // Token: 0x040009D6 RID: 2518
48 public Vector4 grabPos;
49}