projects
/
voxscape
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5eeffed
)
fix sky gradient regression
author
John Tsiombikas
<nuclear@member.fsf.org>
Sun, 16 Oct 2022 23:44:56 +0000
(
02:44
+0300)
committer
John Tsiombikas
<nuclear@member.fsf.org>
Sun, 16 Oct 2022 23:44:56 +0000
(
02:44
+0300)
src/voxscape.c
patch
|
blob
|
history
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++) {