Vixen
dd8b0a81
csharp
public enum MeshMaps

Which of the mesh maps to measure, beyond the normal and the displacement.

Read the guide page for this →

Remarks

The normal map and the displacement map are not in here because they are not optional. They fall out of the one ray the bake already casts, and the seven below are further measurements at the same texel, on the surface point that ray found.

⚠ AmbientOcclusion, BentNormal and Thickness are the expensive ones and nothing else here is. They are the only three that cast rays of their own — OcclusionSamples of them per texel, against the same tree — and the three of them together cost what one of them costs, because they share both the sample set and the loop. The other four are arithmetic on a hit the bake already has.

Fields and properties (9)

  • None

    Just the normal and the displacement, which is what a bake has always returned.

  • AmbientOcclusion

    The unoccluded fraction of the cosine-weighted hemisphere.

  • BentNormal

    The average unoccluded direction, from the same rays.

  • Curvature

    Mean curvature, interpolated from the source's cotangent Laplacian.

  • Thickness

    The occluded fraction of the same hemisphere, inverted through the surface.

  • Position

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

  • WorldNormal

    The source's normal, in the source's own space.

  • Id

    The source's face group, nearest-sampled and never filtered.

  • All

    All seven.

Used by (10)

  • BakeBuffersVixen.Geometry.Remeshing
  • BakeSettingsVixen.Geometry.Remeshing
  • MapBakerVixen.Geometry.Remeshing
  • MeshMapTestsVixen.Geometry.Remeshing.Tests
  • MeshMapAssetTestsVixen.Editor.App.Tests
  • MeshMapBakePanelTestsVixen.Editor.App.Tests
  • MeshMapBakeSettingsVixen.Editor.App
  • MeshMapGeneratorBindingTestsVixen.Editor.App.Tests
  • MeshMapLibraryTestsVixen.Editor.App.Tests
  • TypeRegistrationVixen.Editor.App