FillWithProperties ( typeof ( Builtin . BuiltinData ) , styles . debugViewMaterialStrings , styles . debugViewMaterialValues , false , GetSubNameSpaceName ( typeof ( Lit . SurfaceData ) ) , ref index ) ;
FillWithProperties ( typeof ( Lit . SurfaceData ) , styles . debugViewMaterialStrings , styles . debugViewMaterialValues , false , GetSubNameSpaceName ( typeof ( Lit . SurfaceData ) ) , ref index ) ;
FillWithProperties ( typeof ( Builtin . BuiltinData ) , styles . debugViewMaterialStrings , styles . debugViewMaterialValues , false , GetSubNameSpaceName ( typeof ( Unlit . SurfaceData ) ) , ref index ) ;
FillWithProperties ( typeof ( Unlit . SurfaceData ) , styles . debugViewMaterialStrings , styles . debugViewMaterialValues , false , GetSubNameSpaceName ( typeof ( Unlit . SurfaceData ) ) , ref index ) ;
FillWithProperties ( typeof ( Unlit . SurfaceData ) , styles . debugViewMaterialStrings , styles . debugViewMaterialValues , false , GetSubNameSpaceName ( typeof ( Unlit . SurfaceData ) ) , ref index ) ;
// Engine
FillWithPropertiesEnum ( typeof ( Attributes . DebugViewGbuffer ) , styles . debugViewMaterialStrings , styles . debugViewMaterialValues , "" , true , ref index ) ;
EditorGUILayout . Space ( ) ;
debugParameters . displayOpaqueObjects = EditorGUILayout . Toggle ( styles . displayOpaqueObjects , debugParameters . displayOpaqueObjects ) ;
debugParameters . displayTransparentObjects = EditorGUILayout . Toggle ( styles . displayTransparentObjects , debugParameters . displayTransparentObjects ) ;
debugParameters . useForwardRenderingOnly = EditorGUILayout . Toggle ( styles . useForwardRenderingOnly , debugParameters . useForwardRenderingOnly ) ;
debugParameters . useForwardRenderingOnly = EditorGUILayout . Toggle ( styles . useForwardRenderingOnly , debugParameters . useForwardRenderingOnly ) ;
debugParameters . useSinglePassLightLoop = EditorGUILayout . Toggle ( styles . useSinglePassLightLoop , debugParameters . useSinglePassLightLoop ) ;
debugParameters . useSinglePassLightLoop = EditorGUILayout . Toggle ( styles . useSinglePassLightLoop , debugParameters . useSinglePassLightLoop ) ;
if ( EditorGUI . EndChangeCheck ( ) )
{
shadowParameters . directionalLightCascadeCount = EditorGUILayout . IntPopup ( styles . shadowsDirectionalLightCascadeCount , shadowParameters . directionalLightCascadeCount , styles . shadowsCascadeCounts , styles . shadowsCascadeCountValues ) ;
EditorGUI . indentLevel + + ;
for ( int i = 0 ; i < shadowParameters . directionalLightCascadeCount - 1 ; i + + )
for ( int i = 0 ; i < shadowParameters . directionalLightCascadeCount - 1 ; i + + )
{
shadowParameters . directionalLightCascades [ i ] = Mathf . Max ( 0 , EditorGUILayout . FloatField ( shadowParameters . directionalLightCascades [ i ] ) ) ;
}
textureParameters . spotCookieSize = Mathf . NextPowerOfTwo ( Mathf . Clamp ( EditorGUILayout . IntField ( styles . spotCookieSize , textureParameters . spotCookieSize ) , 1 6 , 1 0 2 4 ) ) ;
textureParameters . pointCookieSize = Mathf . NextPowerOfTwo ( Mathf . Clamp ( EditorGUILayout . IntField ( styles . pointCookieSize , textureParameters . pointCookieSize ) , 1 6 , 1 0 2 4 ) ) ;
textureParameters . reflectionCubemapSize = Mathf . NextPowerOfTwo ( Mathf . Clamp ( EditorGUILayout . IntField ( styles . reflectionCubemapSize , textureParameters . reflectionCubemapSize ) , 6 4 , 1 0 2 4 ) ) ;
if ( EditorGUI . EndChangeCheck ( ) )
{
EditorUtility . SetDirty ( renderLoop ) ; // Repaint
EditorGUILayout . Space ( ) ;
EditorGUILayout . LabelField ( styles . tileLightLoopSettings ) ;
EditorGUI . indentLevel + + ;
EditorGUI . BeginChangeCheck ( ) ;
EditorGUILayout . LabelField ( styles . tileLightLoopSettings ) ;
EditorGUI . indentLevel + + ;
EditorGUI . BeginChangeCheck ( ) ;
}
if ( EditorGUI . EndChangeCheck ( ) )
{
EditorUtility . SetDirty ( renderLoop ) ; // Repaint
if ( EditorGUI . EndChangeCheck ( ) )
{
EditorUtility . SetDirty ( renderLoop ) ; // Repaint
// If something is chanage on tilePassLightLoop we need to force a OnValidate() OnHDRenderLoop, else change Rebuild() will not be call
renderLoop . OnValidate ( ) ;
}
EditorGUI . indentLevel - - ;
EditorGUI . indentLevel - - ;
}
}
}