projects
/
voxscape
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix sky gradient regression
[voxscape]
/
src
/
voxscape.c
diff --git
a/src/voxscape.c
b/src/voxscape.c
index
0b538d9
..
bcd3abf
100644
(file)
--- a/
src/voxscape.c
+++ b/
src/voxscape.c
@@
-358,7
+358,7
@@
void vox_sky_grad(struct voxscape *vox, uint32_t chor, uint32_t ctop)
b1 = chor & 0xff;
for(i=0; i<d; i++) {
- t = (i << 8) / d;
+ t = (i << 16) / d;
grad[i] = lerp_rgb(r0, g0, b0, r1, g1, b1, t);
}
for(i=d; i<vox->fbheight; i++) {