aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_darken_rgb.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r5p6.le-101.fr>2020-03-09 17:16:31 +0100
committerRudy Bousset <rbousset@z2r5p6.le-101.fr>2020-03-09 17:16:31 +0100
commitff1301afc3808887b4cf8fde9a4d24638120c6c5 (patch)
treeda99874501bd4bf6b9bb993b74a9355620b0286b /src/ft_darken_rgb.c
parentGood lvl five (diff)
download42-cub3d-ff1301afc3808887b4cf8fde9a4d24638120c6c5.tar.gz
42-cub3d-ff1301afc3808887b4cf8fde9a4d24638120c6c5.tar.bz2
42-cub3d-ff1301afc3808887b4cf8fde9a4d24638120c6c5.tar.xz
42-cub3d-ff1301afc3808887b4cf8fde9a4d24638120c6c5.tar.zst
42-cub3d-ff1301afc3808887b4cf8fde9a4d24638120c6c5.zip
Perf
Diffstat (limited to 'src/ft_darken_rgb.c')
-rw-r--r--src/ft_darken_rgb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_darken_rgb.c b/src/ft_darken_rgb.c
index 4c571cf..223a540 100644
--- a/src/ft_darken_rgb.c
+++ b/src/ft_darken_rgb.c
@@ -22,7 +22,7 @@ uint32_t
if ((dist = cl->rlist.row_dist) <= 0)
dist = 0.0001;
- calc = (dist * 0.4);
+ calc = (dist * 0.1 * cl->mlist.darklvl);
calc = (calc >= 255) ? (255) : (calc);
calc = (calc < 1) ? (1) : (calc);
darker = rgb;