From 55ed470e87d575b122f413cbb4931bc4131c111b Mon Sep 17 00:00:00 2001 From: knghtbrd Date: Mon, 29 Jul 2002 11:11:59 +0000 Subject: [PATCH] Make coronas look better (it looks good in Twilight, so...) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2116 d7cf8633-e32d-0410-b094-e92efae38249 --- r_light.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r_light.c b/r_light.c index f728de2c..1c8b099b 100644 --- a/r_light.c +++ b/r_light.c @@ -43,7 +43,7 @@ void r_light_start(void) for (x = 0;x < 32;x++) { dx = (x - 15.5f) * (1.0f / 16.0f); - a = ((1.0f / (dx * dx + dy * dy + 0.2f)) - (1.0f / (1.0f + 0.2))) * 64.0f / (1.0f / (1.0f + 0.2)); + a = ((1.0f / (dx * dx + dy * dy + 0.2f)) - (1.0f / (1.0f + 0.2))) * 32.0f / (1.0f / (1.0f + 0.2)); a = bound(0, a, 255); pixels[y][x][0] = 255; pixels[y][x][1] = 255; -- 2.39.2