|
26 | 26 | namespace Klak.MaterialExtension |
27 | 27 | { |
28 | 28 | /// Extension methods (setters) for Material |
29 | | - static class MaterialSetterExtension |
| 29 | + public static class MaterialSetterExtension |
30 | 30 | { |
31 | | - static public Material Property(this Material m, string name, float x) |
| 31 | + public static Material Property(this Material m, string name, float x) |
32 | 32 | { |
33 | 33 | m.SetFloat(name, x); |
34 | 34 | return m; |
35 | 35 | } |
36 | 36 |
|
37 | | - static public Material Property(this Material m, string name, float x, float y) |
| 37 | + public static Material Property(this Material m, string name, float x, float y) |
38 | 38 | { |
39 | 39 | m.SetVector(name, new Vector2(x, y)); |
40 | 40 | return m; |
41 | 41 | } |
42 | 42 |
|
43 | | - static public Material Property(this Material m, string name, float x, float y, float z) |
| 43 | + public static Material Property(this Material m, string name, float x, float y, float z) |
44 | 44 | { |
45 | 45 | m.SetVector(name, new Vector3(x, y, z)); |
46 | 46 | return m; |
47 | 47 | } |
48 | 48 |
|
49 | | - static public Material Property(this Material m, string name, float x, float y, float z, float w) |
| 49 | + public static Material Property(this Material m, string name, float x, float y, float z, float w) |
50 | 50 | { |
51 | 51 | m.SetVector(name, new Vector4(x, y, z, w)); |
52 | 52 | return m; |
53 | 53 | } |
54 | 54 |
|
55 | | - static public Material Property(this Material m, string name, Vector2 v) |
| 55 | + public static Material Property(this Material m, string name, Vector2 v) |
56 | 56 | { |
57 | 57 | m.SetVector(name, v); |
58 | 58 | return m; |
59 | 59 | } |
60 | 60 |
|
61 | | - static public Material Property(this Material m, string name, Vector3 v) |
| 61 | + public static Material Property(this Material m, string name, Vector3 v) |
62 | 62 | { |
63 | 63 | m.SetVector(name, v); |
64 | 64 | return m; |
65 | 65 | } |
66 | 66 |
|
67 | | - static public Material Property(this Material m, string name, Vector4 v) |
| 67 | + public static Material Property(this Material m, string name, Vector4 v) |
68 | 68 | { |
69 | 69 | m.SetVector(name, v); |
70 | 70 | return m; |
71 | 71 | } |
72 | 72 |
|
73 | | - static public Material Property(this Material m, string name, Color color) |
| 73 | + public static Material Property(this Material m, string name, Color color) |
74 | 74 | { |
75 | 75 | m.SetColor(name, color); |
76 | 76 | return m; |
77 | 77 | } |
78 | 78 |
|
79 | | - static public Material Property(this Material m, string name, Texture texture) |
| 79 | + public static Material Property(this Material m, string name, Texture texture) |
80 | 80 | { |
81 | 81 | m.SetTexture(name, texture); |
82 | 82 | return m; |
83 | 83 | } |
84 | 84 | } |
85 | 85 |
|
86 | 86 | /// Extension methods (setters) for MaterialProperty |
87 | | - static class MaterialPropertySetterExtension |
| 87 | + public static class MaterialPropertySetterExtension |
88 | 88 | { |
89 | | - static public MaterialPropertyBlock Property(this MaterialPropertyBlock m, string name, float x) |
| 89 | + public static MaterialPropertyBlock Property(this MaterialPropertyBlock m, string name, float x) |
90 | 90 | { |
91 | 91 | m.SetFloat(name, x); |
92 | 92 | return m; |
93 | 93 | } |
94 | 94 |
|
95 | | - static public MaterialPropertyBlock Property(this MaterialPropertyBlock m, string name, float x, float y) |
| 95 | + public static MaterialPropertyBlock Property(this MaterialPropertyBlock m, string name, float x, float y) |
96 | 96 | { |
97 | 97 | m.SetVector(name, new Vector2(x, y)); |
98 | 98 | return m; |
99 | 99 | } |
100 | 100 |
|
101 | | - static public MaterialPropertyBlock Property(this MaterialPropertyBlock m, string name, float x, float y, float z) |
| 101 | + public static MaterialPropertyBlock Property(this MaterialPropertyBlock m, string name, float x, float y, float z) |
102 | 102 | { |
103 | 103 | m.SetVector(name, new Vector3(x, y, z)); |
104 | 104 | return m; |
105 | 105 | } |
106 | 106 |
|
107 | | - static public MaterialPropertyBlock Property(this MaterialPropertyBlock m, string name, float x, float y, float z, float w) |
| 107 | + public static MaterialPropertyBlock Property(this MaterialPropertyBlock m, string name, float x, float y, float z, float w) |
108 | 108 | { |
109 | 109 | m.SetVector(name, new Vector4(x, y, z, w)); |
110 | 110 | return m; |
111 | 111 | } |
112 | 112 |
|
113 | | - static public MaterialPropertyBlock Property(this MaterialPropertyBlock m, string name, Vector2 v) |
| 113 | + public static MaterialPropertyBlock Property(this MaterialPropertyBlock m, string name, Vector2 v) |
114 | 114 | { |
115 | 115 | m.SetVector(name, v); |
116 | 116 | return m; |
117 | 117 | } |
118 | 118 |
|
119 | | - static public MaterialPropertyBlock Property(this MaterialPropertyBlock m, string name, Vector3 v) |
| 119 | + public static MaterialPropertyBlock Property(this MaterialPropertyBlock m, string name, Vector3 v) |
120 | 120 | { |
121 | 121 | m.SetVector(name, v); |
122 | 122 | return m; |
123 | 123 | } |
124 | 124 |
|
125 | | - static public MaterialPropertyBlock Property(this MaterialPropertyBlock m, string name, Vector4 v) |
| 125 | + public static MaterialPropertyBlock Property(this MaterialPropertyBlock m, string name, Vector4 v) |
126 | 126 | { |
127 | 127 | m.SetVector(name, v); |
128 | 128 | return m; |
129 | 129 | } |
130 | 130 |
|
131 | | - static public MaterialPropertyBlock Property(this MaterialPropertyBlock m, string name, Color color) |
| 131 | + public static MaterialPropertyBlock Property(this MaterialPropertyBlock m, string name, Color color) |
132 | 132 | { |
133 | 133 | m.SetColor(name, color); |
134 | 134 | return m; |
135 | 135 | } |
136 | 136 |
|
137 | | - static public MaterialPropertyBlock Property(this MaterialPropertyBlock m, string name, Texture texture) |
| 137 | + public static MaterialPropertyBlock Property(this MaterialPropertyBlock m, string name, Texture texture) |
138 | 138 | { |
139 | 139 | m.SetTexture(name, texture); |
140 | 140 | return m; |
|
0 commit comments