Method BakeAOMap
BakeAOMap(uint, int, bool, ColorAlpha?)
Ray tracing based ambient occlusion computation
Declaration
[HandleProcessCorruptedStateExceptions]
public ImageList BakeAOMap(uint sessionId, int samples = 32, bool bentNormals = false, ColorAlpha? defaultColor = null)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | sessionId | Baking session Id |
| int | samples | Number of rays cast for occlusion detection (must be a power of two in the range [8, 4096]) |
| bool | bentNormals | If true, bent normals are baked in addition to AO |
| ColorAlpha? | defaultColor | Color used for filling unbaked texels |
Returns
| Type | Description |
|---|---|
| ImageList |