Vixen
dd8b0a81
csharp
public enum MeshMapUsage

What one baked mesh map measures, which is how a generator finds it.

Read the guide page for this →

Remarks

docs/plan/48 § 4.8: a Mesh Map Input binds by usage. That is what makes one generator compound work on every mesh — a Curvature Edge Wear graph asks for Curvature and gets whichever file this project's bake produced, without naming it. So the usage is the identity of a mesh map and the file name is a convenience, which is the same bargain the asset database makes between a GUID and a path.

One member per row of § D12's table, plus the two the bake has always returned. It is deliberately not Vixen.Geometry.Remeshing.MeshMaps: that is a flags enum saying which measurements to spend rays on, and a usage is a single value naming one file. Folding them together would make "bake AO and thickness" and "this file is the AO map" the same type, and the second one has to be one value or a look-up by it is meaningless.

Fields and properties (9)

  • Normal

    The tangent- or object-space normal map. Always baked.

  • Displacement

    The signed displacement along the target's normal. Always baked.

  • AmbientOcclusion

    The unoccluded fraction of the hemisphere.

  • BentNormal

    The average unoccluded direction.

  • Curvature

    Mean curvature: positive on an edge, negative in a crease.

  • Thickness

    How enclosed the inside is.

  • Position

    The surface point, normalised into the source's bounding box.

  • WorldNormal

    The source's own normal, unrotated.

  • Id

    The source's face group as a distinct colour.

Used by (19)

  • MeshMapAssetVixen.Editor.Assets
  • MeshMapAssetTestsVixen.Editor.App.Tests
  • MeshMapBakeVixen.Editor.Assets
  • MeshMapBakePanelTestsVixen.Editor.App.Tests
  • MeshMapBakeSettingsVixen.Editor.App
  • MeshMapBakeViewVixen.Editor.App
  • MeshMapBindingVixen.Editor.Assets
  • MeshMapCommandTestsVixen.Cli.Tests
  • MeshMapEncodingTestsVixen.Editor.Assets.Tests
  • MeshMapGeneratorBindingTestsVixen.Editor.App.Tests
  • MeshMapImageVixen.Editor.Assets
  • MeshMapLibraryVixen.Editor.Assets
  • MeshMapLibraryTestsVixen.Editor.App.Tests
  • MeshMapNamingVixen.Editor.Assets
  • MeshMapReferenceVixen.Editor.Assets
  • MeshMapRunnerVixen.Cli
  • MeshMapSetVixen.Editor.Assets
  • ProjectMeshMapBakerVixen.Editor.App
  • RecordingBakerVixen.Editor.App.Tests