mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
correcting gamma for proper display
This commit is contained in:
parent
156c36acbb
commit
c09217cd1c
@ -407,6 +407,8 @@ static_set_gamma(float gamma) {
|
|||||||
|
|
||||||
short j, i;
|
short j, i;
|
||||||
short y[3];
|
short y[3];
|
||||||
|
|
||||||
|
gamma = (2 * gamma) + 1.0;
|
||||||
|
|
||||||
y[0] = 256 * gamma;
|
y[0] = 256 * gamma;
|
||||||
y[1] = 256 * gamma;
|
y[1] = 256 * gamma;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user