Vixen
02b45cc4
csharp
public enum MaterialPreviewShape

What shape the material preview is drawn on.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

A sphere is the default because it shows a whole BRDF at once — every angle between the normal and the eye is somewhere on it, which is exactly what a material is a function of. A plane is what a tiling or a decal material needs, and a cube is what shows a normal map's hard edges. The shapes are what the host renders; nothing here draws.

Fields and properties (3)

  • Sphere

    A sphere. Every view angle at once.

  • Plane

    A plane, for tiling and decals.

  • Cube

    A cube, for the hard edges a sphere hides.

Used by (1)

  • MaterialViewVixen.Editor.AssetEditors