3
3
4
4
namespace UnityEngine . Rendering . Universal
5
5
{
6
- class DebugDisplaySettingsLighting : IDebugDisplaySettingsData
6
+ /// <summary>
7
+ /// Lighting-related Rendering Debugger settings.
8
+ /// </summary>
9
+ public class DebugDisplaySettingsLighting : IDebugDisplaySettingsData
7
10
{
8
- internal DebugLightingMode DebugLightingMode { get ; private set ; }
9
- internal DebugLightingFeatureFlags DebugLightingFeatureFlagsMask { get ; private set ; }
11
+ /// <summary>
12
+ /// Current debug lighting mode.
13
+ /// </summary>
14
+ public DebugLightingMode lightingDebugMode { get ; set ; }
15
+
16
+ /// <summary>
17
+ /// Current debug lighting feature flags mask that allows selective disabling individual lighting components.
18
+ /// </summary>
19
+ public DebugLightingFeatureFlags lightingFeatureFlags { get ; set ; }
10
20
11
21
static class Strings
12
22
{
@@ -20,17 +30,17 @@ internal static class WidgetFactory
20
30
{
21
31
nameAndTooltip = Strings . LightingDebugMode ,
22
32
autoEnum = typeof ( DebugLightingMode ) ,
23
- getter = ( ) => ( int ) data . DebugLightingMode ,
33
+ getter = ( ) => ( int ) data . lightingDebugMode ,
24
34
setter = ( value ) => { } ,
25
- getIndex = ( ) => ( int ) data . DebugLightingMode ,
26
- setIndex = ( value ) => data . DebugLightingMode = ( DebugLightingMode ) value
35
+ getIndex = ( ) => ( int ) data . lightingDebugMode ,
36
+ setIndex = ( value ) => data . lightingDebugMode = ( DebugLightingMode ) value
27
37
} ;
28
38
29
39
internal static DebugUI . Widget CreateLightingFeatures ( DebugDisplaySettingsLighting data ) => new DebugUI . BitField
30
40
{
31
41
nameAndTooltip = Strings . LightingFeatures ,
32
- getter = ( ) => data . DebugLightingFeatureFlagsMask ,
33
- setter = ( value ) => data . DebugLightingFeatureFlagsMask = ( DebugLightingFeatureFlags ) value ,
42
+ getter = ( ) => data . lightingFeatureFlags ,
43
+ setter = ( value ) => data . lightingFeatureFlags = ( DebugLightingFeatureFlags ) value ,
34
44
enumType = typeof ( DebugLightingFeatureFlags ) ,
35
45
} ;
36
46
}
@@ -56,9 +66,9 @@ public SettingsPanel(DebugDisplaySettingsLighting data)
56
66
}
57
67
58
68
#region IDebugDisplaySettingsData
59
- public bool AreAnySettingsActive => ( DebugLightingMode != DebugLightingMode . None ) || ( DebugLightingFeatureFlagsMask != DebugLightingFeatureFlags . None ) ;
69
+ public bool AreAnySettingsActive => ( lightingDebugMode != DebugLightingMode . None ) || ( lightingFeatureFlags != DebugLightingFeatureFlags . None ) ;
60
70
61
- public bool IsPostProcessingAllowed => ( DebugLightingMode != DebugLightingMode . Reflections && DebugLightingMode != DebugLightingMode . ReflectionsWithSmoothness ) ;
71
+ public bool IsPostProcessingAllowed => ( lightingDebugMode != DebugLightingMode . Reflections && lightingDebugMode != DebugLightingMode . ReflectionsWithSmoothness ) ;
62
72
63
73
public bool IsLightingActive => true ;
64
74
@@ -67,7 +77,7 @@ public bool TryGetScreenClearColor(ref Color color)
67
77
return false ;
68
78
}
69
79
70
- public IDebugDisplaySettingsPanelDisposable CreatePanel ( )
80
+ IDebugDisplaySettingsPanelDisposable IDebugDisplaySettingsData . CreatePanel ( )
71
81
{
72
82
return new SettingsPanel ( this ) ;
73
83
}
0 commit comments