Method BeginVertexBakingSession
BeginVertexBakingSession(OccurrenceList, OccurrenceList, double, double, double, bool, ElementFilter)
Start a new baking session. This must be called prior to any of the bakeSomethingMap function.
Declaration
[HandleProcessCorruptedStateExceptions]
public uint BeginVertexBakingSession(OccurrenceList destinationOccurrences, OccurrenceList sourceOccurrences, double rayOffset = 0, double rayMaxDist = -1, double opacityThreshold = -1, bool useCurrentPosition = false, ElementFilter sourceElements = ElementFilter.Polygons)
Parameters
| Type | Name | Description |
|---|---|---|
| OccurrenceList | destinationOccurrences | Occurrences of the meshes where to store the baked map |
| OccurrenceList | sourceOccurrences | Occurrences of components from which to bake maps (if empty use destination) |
| double | rayOffset | Offset from source mesh |
| double | rayMaxDist | Maximum search distance for ray tracing during baking computation (-1 means infinity) |
| double | opacityThreshold | If the opacity is under this threshold, considers as fully transparent and store the color behind the intersection |
| bool | useCurrentPosition | Use the current position instead of the T-Pose of the input occurrence |
| ElementFilter | sourceElements | Defines the type of elements from which baking is performed (polygons or points). |
Returns
| Type | Description |
|---|---|
| uint |