|
#define GAMMA_RAMP_OFF 0
#define GAMMA_RAMP_MAKE_DARKER_COLORS_MORE_VISIBLE 1001
#define GAMMA_RAMP_MAKE_BRIGHTER_COLORS_MORE_VISIBLE 1002
*** quite useful
Gamma ramp is used in fullscreen mode to improve the image.
Usually we use it to make a dark scene brighter
works only in fullscreen mode !
Examples:
A) making darker colors more visible
STATE_3D_card_set_gamma_correction(GAMMA_RAMP_MAKE_DARKER_COLORS_MORE_VISIBLE);
B) disabling gamma correction
STATE_3D_card_set_gamma_correction(GAMMA_RAMP_OFF);
C) Making all colors 10 steps brighter. for example rgb (70,80, 95) will become (80, 90, 105)
rgb (251,253,255) will be cliped to (255,255,255)
STATE_3D_card_set_gamma_correction(10);
D) Making all colors 10 steps darker. for example rgb (70,80, 95) will become (60, 70, 85)
rgb (1,2,3) will be clipped to rgb (0,0,0)
STATE_3D_card_set_gamma_correction(-10);
|