engineSetAmbientOcclusion
Client
Sets how many samples ambient occlusion takes. More samples darken corners and crevices more precisely.
bool engineSetAmbientOcclusion(int samples)
Parameters
| Name | Type | Description |
|---|---|---|
| samples | int | From 0 to 32. With 0, ambient occlusion is off. The default is 6. Anything else raises an error. |
Returns
true if the setting was applied, false if the renderer is not running.
The setting applies to the whole client and stays after the resource stops.
Example
engineSetAmbientOcclusion(0)