@@ -43,7 +43,7 @@ private class Styles
43
43
public readonly int [ ] shadowsCascadeCountValues = new int [ ] { 1 , 2 , 3 , 4 } ;
44
44
public readonly GUIContent shadowsCascades = new GUIContent ( "Cascade values" ) ;
45
45
46
- public readonly GUIContent tileLightLoopSettings = new GUIContent ( "Tile Light Loop settings " ) ;
46
+ public readonly GUIContent tileLightLoopSettings = new GUIContent ( "Tile Light Loop Settings " ) ;
47
47
public readonly string [ ] tileLightLoopDebugTileFlagStrings = new string [ ] { "Punctual Light" , "Area Light" , "Env Light" } ;
48
48
public readonly GUIContent splitLightEvaluation = new GUIContent ( "Split light and reflection evaluation" , "Toggle" ) ;
49
49
public readonly GUIContent bigTilePrepass = new GUIContent ( "Enable big tile prepass" , "Toggle" ) ;
@@ -52,11 +52,11 @@ private class Styles
52
52
53
53
54
54
55
- public readonly GUIContent textureSettings = new GUIContent ( "texture Settings" ) ;
55
+ public readonly GUIContent textureSettings = new GUIContent ( "Texture Settings" ) ;
56
56
57
- public readonly GUIContent spotCookieSize = new GUIContent ( "spotCookie Size " ) ;
58
- public readonly GUIContent pointCookieSize = new GUIContent ( "pointCookie Size " ) ;
59
- public readonly GUIContent reflectionCubemapSize = new GUIContent ( "reflectionCubemap Size " ) ;
57
+ public readonly GUIContent spotCookieSize = new GUIContent ( "Spot cookie size " ) ;
58
+ public readonly GUIContent pointCookieSize = new GUIContent ( "Point cookie size " ) ;
59
+ public readonly GUIContent reflectionCubemapSize = new GUIContent ( "Reflection cubemap size " ) ;
60
60
}
61
61
62
62
private static Styles s_Styles = null ;
@@ -131,13 +131,8 @@ void FillWithPropertiesEnum(Type type, GUIContent[] debugViewMaterialStrings, in
131
131
}
132
132
}
133
133
134
- public override void OnInspectorGUI ( )
134
+ private void DebugParametersUI ( HDRenderLoop renderLoop )
135
135
{
136
- var renderLoop = target as HDRenderLoop ;
137
-
138
- if ( ! renderLoop )
139
- return ;
140
-
141
136
var debugParameters = renderLoop . debugParameters ;
142
137
143
138
EditorGUILayout . LabelField ( styles . debugParameters ) ;
@@ -199,7 +194,10 @@ public override void OnInspectorGUI()
199
194
EditorUtility . SetDirty ( renderLoop ) ; // Repaint
200
195
}
201
196
EditorGUI . indentLevel -- ;
197
+ }
202
198
199
+ private void SkyParametersUI ( HDRenderLoop renderLoop )
200
+ {
203
201
EditorGUILayout . Space ( ) ;
204
202
var skyParameters = renderLoop . skyParameters ;
205
203
@@ -219,7 +217,10 @@ public override void OnInspectorGUI()
219
217
EditorUtility . SetDirty ( renderLoop ) ; // Repaint
220
218
}
221
219
EditorGUI . indentLevel -- ;
220
+ }
222
221
222
+ private void ShadowParametersUI ( HDRenderLoop renderLoop )
223
+ {
223
224
EditorGUILayout . Space ( ) ;
224
225
var shadowParameters = renderLoop . shadowSettings ;
225
226
@@ -244,7 +245,10 @@ public override void OnInspectorGUI()
244
245
EditorUtility . SetDirty ( renderLoop ) ; // Repaint
245
246
}
246
247
EditorGUI . indentLevel -- ;
248
+ }
247
249
250
+ private void TextureParametersUI ( HDRenderLoop renderLoop )
251
+ {
248
252
EditorGUILayout . Space ( ) ;
249
253
var textureParameters = renderLoop . textureSettings ;
250
254
@@ -262,8 +266,10 @@ public override void OnInspectorGUI()
262
266
EditorUtility . SetDirty ( renderLoop ) ; // Repaint
263
267
}
264
268
EditorGUI . indentLevel -- ;
269
+ }
265
270
266
-
271
+ private void TilePassUI ( HDRenderLoop renderLoop )
272
+ {
267
273
EditorGUILayout . Space ( ) ;
268
274
269
275
// TODO: we should call a virtual method or something similar to setup the UI, inspector should not know about it
@@ -299,5 +305,19 @@ public override void OnInspectorGUI()
299
305
EditorGUI . indentLevel -- ;
300
306
}
301
307
}
308
+
309
+ public override void OnInspectorGUI ( )
310
+ {
311
+ var renderLoop = target as HDRenderLoop ;
312
+
313
+ if ( ! renderLoop )
314
+ return ;
315
+
316
+ DebugParametersUI ( renderLoop ) ;
317
+ SkyParametersUI ( renderLoop ) ;
318
+ ShadowParametersUI ( renderLoop ) ;
319
+ TextureParametersUI ( renderLoop ) ;
320
+ TilePassUI ( renderLoop ) ;
321
+ }
302
322
}
303
323
}
0 commit comments