engineSetReflections
Client
Sets up reflections: the size of the environment probe and the screen-space reflections.
bool engineSetReflections(int probeSize, float marchScale [, int marchSteps = 24])
Parameters
| Name | Type | Description |
|---|---|---|
| probeSize | int | Pixels per side of the probe that captures the surroundings: 0 reflects only the sky; otherwise a power of two from 32 to 1024. The default on PC is 256. |
| marchScale | float | Fraction of the resolution screen-space reflections are computed at: 0 turns them off; otherwise from 0.25 to 1. The default is 0.5. |
| marchSteps | int | Steps each screen-space reflection ray takes, from 4 to 64.default 24 |
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
engineSetReflections(128, 0)NoteAny value outside the limits raises an error.