For more advanced graphics debugging and scene rendering preview you can use Debug View. This feature allows to output one of the intermediate buffers or show the special rendering features debug view.
It's avaliable to use in every Editor viewport by using View -> Debug View.
The full list of options and the documentation is available here.
You can also adjust those options from code:
MainRenderTask.Instance.View.Mode = ViewMode.Diffuse;
LOD Preview displays scene meshes in colors based on the LOD index. This comes handy when debugging model LODs transitions based on distance or object screen-size. The table below shows the legend of the colors used for this debug view.
|LOD 0||LOD 1||LOD 2||LOD 3||LOD 4||LOD 5|
Material Complexity displays per-pixel complexity of the materials rendering. It colors the pixels based on the number of shader instructions, blending mode used, textures usage, and tessallation usage. This works in general as a good indication of performance metric of the materials and can be used to analyze and optimize scenes. The table below shows the legend of the colors used for this debug view.
Quad Overdraw displays per-pixel overdraw that accumulates during scene rendering. It is useful when analyzing geometry complexity (eg. too high poly meshes), models culling, and analyze overdraw from other objects such as particles and decals. The table below shows the legend of the colors used for this debug view based on the amount of triangles covering given pixel.