engineSetSunShafts
Client
Sets the fraction of the resolution sun shafts are computed at, or turns them off.
bool engineSetSunShafts(float scale)
Parameters
| Name | Type | Description |
|---|---|---|
| scale | float | 0 turns them off; otherwise from 0.125 to 1. The default on PC is 0.5. 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
engineSetSunShafts(0)