public static class ViewShadingWhat each view mode means to the editor's own tool renderer.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Two answers to "show me the normals" and this is the near one. ViewModes is the real one — a mode is a compositor tree, which is what doc 06 made the compositor data for — and it needs the viewport to be driven by RenderSystem through a GraphicsCompositor, which is Phase 7's material-system wiring rather than this document's. What the editor draws today is SceneMeshes through MeshInstanceRenderer: device-resident shapes, one instance per entity, one colour and one directional term, and no material anywhere. This table is what that path can honestly express.
⚠ The three it cannot express say so rather than falling back. Resolve falls back to shaded for a mode with no tree registered, which is right for a compositor that has not been authored and wrong for a menu item: a line that draws the same picture as the line above it is a control the user tries twice and then stops trusting. IsSupported is what lets the Scene menu register those three as declared-and-disabled with the reason, which is doc 20's first bar.
Fields and properties (1)
public static IReadOnlyList<ViewMode> AllEvery mode, in the order the View Mode menu offers them.
Methods (9)
public static bool IsSupported(ViewMode mode)Whether the editor's tool renderer can draw a mode at all.
public static bool DrawsSurfaces(ViewMode mode)Whether a mode draws surfaces.
public static bool DrawsEdges(ViewMode mode)Whether a mode draws the edges of those surfaces.
public static float AmbientFor(ViewMode mode, float shaded)How much light a surface facing away from the key still receives.
public static bool ColoursByNormal(ViewMode mode)Whether a surface is coloured by its normal rather than by what it is.
public static bool ColoursByRoughness(ViewMode mode)Whether a surface is coloured by its roughness rather than by what it is.
public static bool IgnoresSelectionColour(ViewMode mode)Whether a mode ignores the selection's colour.
public static string NameOf(ViewMode mode)What a mode is called in a menu.
public static string SlugOf(ViewMode mode)What a mode is called in a command id.
Used by (6)
- EditorApplicationVixen.Editor.App
- SceneMaterialTestsVixen.Editor.SceneView.Tests
- SceneMeshesVixen.Editor.SceneView
- ScenePresenterVixen.Editor.App
- ViewportIdsVixen.Editor.App
- ViewportStateTestsVixen.Editor.SceneView.Tests