Sets a gamma ramp. Using gamma ramps, the global light situation of the game can be adjusted by assigning an individual data table to each color channel from which a new brightness value is read. By doing this you can strengthen chosen color ranges, darken or lighten the complete game or even invert light and darkness.
The eight gamma ramps have the following effects:
iRampIndex |
Function |
0 |
Scenario global value |
1 |
Climate/Seasons (will be used internally if activated in the scenario) |
2 |
free |
3 |
Day/Night |
4 |
free |
5 |
Lightning |
6 |
Magic Effects |
7 |
free |
Generally, lower ramp indices mean longer color changes; higher indices mean shorter effects.
SetGamma(RGB(50,0,0), RGB(140,100,100), RGB(255,220,220));
Adds a light blue hue to the game