Method FilterAO
FilterAO(uint, uint, double, double, double, int, bool, double)
Filter an AO map using ATrous method
Declaration
[HandleProcessCorruptedStateExceptions]
public uint FilterAO(uint aoMap, uint normalMap, double sigmaPos = 10, double sigmaValue = 0.1, double sigmaNormal = 0.01, int levelCount = 4, bool filterLowValues = true, double lowValueThreshold = 0.01)
Parameters
Type | Name | Description |
---|---|---|
uint | aoMap | Input AO Map (the alpha component must be set to 0 for unused pixels) |
uint | normalMap | Input Normal Map (preferable to use a World space normal map, but an Object space normal map can be used) |
double | sigmaPos | ATrous Sigma pos |
double | sigmaValue | ATrous Sigma value |
double | sigmaNormal | ATrous Sigma normal |
int | levelCount | Atrous #Levels |
bool | filterLowValues | Remove low values from the filtering (see: lowValuesThreshold parameter) |
double | lowValueThreshold | Threshold used if filterLowValues is enabled |
Returns
Type | Description |
---|---|
uint |