Vixen
dd8b0a81
csharp
public record class BakeSettings

What to bake, at what size, and how far to look for the source.

Read the guide page for this →

Remarks

⚠ SearchRadius is a fraction of the source's bounding-box diagonal and never a distance. A ray cage measured in metres is a claim about how big a model is, and it is the same claim ScaleSafe exists to stop this library making — a bake tuned on a character silently finds nothing on the same character exported in centimetres.

Fields and properties (7)

  • public required int Resolution

    The atlas's edge length in texels. Required, because a gutter is counted in them.

  • public int Gutter

    How many texels of dilation surround each chart.

  • public BakeSpace Space

    Which frame the normals come back in.

  • public float SearchRadius

    How far a ray looks for the source, as a fraction of its bounding-box diagonal.

  • public MeshMaps Maps

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

  • public int OcclusionSamples

    How many rays the hemisphere is estimated with, per texel.

  • public float OcclusionRadius

    How far an occlusion ray reaches, as a fraction of the source's diagonal.

Used by (12)

  • BakeBuffersVixen.Geometry.Remeshing
  • MapBakerVixen.Geometry.Remeshing
  • MapBakerTestsVixen.Geometry.Remeshing.Tests
  • MeshMapTestsVixen.Geometry.Remeshing.Tests
  • ContentTasksVixen.Editor.App
  • MeshMapAssetTestsVixen.Editor.App.Tests
  • MeshMapBakeVixen.Editor.Assets
  • MeshMapBakePanelTestsVixen.Editor.App.Tests
  • MeshMapBakeSettingsVixen.Editor.App
  • MeshMapBakesVixen.Editor.App.Tests
  • MeshMapGeneratorBindingTestsVixen.Editor.App.Tests
  • MeshMapLibraryTestsVixen.Editor.App.Tests