From 98591a820c422cf2a89ea088c415f56049c90c3f Mon Sep 17 00:00:00 2001 From: lordhavoc Date: Fri, 15 Feb 2002 21:27:00 +0000 Subject: [PATCH] made corona texture brighter, and rendering of it darker, fixes 'white' coronas around lava balls (they needed more overbright) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1518 d7cf8633-e32d-0410-b094-e92efae38249 --- r_light.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/r_light.c b/r_light.c index 90136bd7..9a46a5b5 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))) * 8.0f / (1.0f / (1.0f + 0.2)); + a = ((1.0f / (dx * dx + dy * dy + 0.2f)) - (1.0f / (1.0f + 0.2))) * 64.0f / (1.0f / (1.0f + 0.2)); a = bound(0, a, 255); pixels[y][x][0] = 255; pixels[y][x][1] = 255; @@ -172,7 +172,8 @@ void R_DrawCoronas(void) VectorSubtract(rd->origin, vpn, diff); if (TraceLine(r_origin, diff, NULL, NULL, 0, true) == 1) { - scale = 1.0f / 4096.0f; + scale = 1.0f / 262144.0f; + //scale = 64.0f / (DotProduct(diff,diff) + 1024.0f); m.cr = rd->light[0] * scale; m.cg = rd->light[1] * scale; m.cb = rd->light[2] * scale; -- 2.39.2