Class VisualFootprintGenerator
This class provides methods to compute the visual footprint of an LODGroup by comparing the different LODs and applying transition levels.
Inherited Members
Namespace: UnityEditor.Pixyz.UnitySDK
Assembly: Unity.Pixyz.UnitySDK.Editor.dll
Syntax
public static class VisualFootprintGenerator
Methods
Run(LODGroup, bool, uint, float)
Compute the transition levels at which to switch between the different LODs for the given LODGroup
Declaration
public static float[] Run(LODGroup lodGroup, bool useHemisphere = true, uint resolution = 512, float threshold = 0.5)
Parameters
Type | Name | Description |
---|---|---|
LODGroup | lodGroup | The LODGroup to compare |
bool | useHemisphere | If true, only compare views from the upper hemisphere instead of all directions |
uint | resolution | Resolution to use for the comparison images |
float | threshold | Threshold above which two pixels are considered different when comparing the image of a LOD to the image of another LOD |
Returns
Type | Description |
---|---|
float[] | The transition values to use for switching LODs |
RunAndApply(LODGroup, bool, uint, float)
Compute and apply transition levels between the different LODs for the given LODGroup
Declaration
public static void RunAndApply(LODGroup lodGroup, bool useHemisphere = true, uint resolution = 512, float threshold = 0.5)
Parameters
Type | Name | Description |
---|---|---|
LODGroup | lodGroup | The LODGroup to compare and modify |
bool | useHemisphere | If true, only compare views from the upper hemisphere instead of all directions |
uint | resolution | Resolution to use for the comparison images |
float | threshold | Threshold above which two pixels are considered different when comparing the image of a LOD to the image of another LOD |