mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -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 y[3];
|
||||
|
||||
gamma = (2 * gamma) + 1.0;
|
||||
|
||||
y[0] = 256 * gamma;
|
||||
y[1] = 256 * gamma;
|
||||
|
Loading…
x
Reference in New Issue
Block a user