From: knghtbrd Date: Mon, 29 Jul 2002 11:11:59 +0000 (+0000) Subject: Make coronas look better (it looks good in Twilight, so...) X-Git-Tag: RELEASE_0_2_0_RC1~415 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=55ed470e87d575b122f413cbb4931bc4131c111b;p=xonotic%2Fdarkplaces.git 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 --- 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;