From 16fd248babd866be5535bdc43ae21099580ee3eb Mon Sep 17 00:00:00 2001 From: neoraider Date: Sun, 19 Nov 2006 22:03:05 +0000 Subject: Render-Qualitaet durch neue Render()-Funktion erhoeht. --- light.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'light.c') diff --git a/light.c b/light.c index dcea864..216007d 100644 --- a/light.c +++ b/light.c @@ -6,17 +6,11 @@ int nLights = 0; LIGHT *lights; -static COLOR ambient; +COLOR ambient; -static void UpdateAmbient() { - glClearColor(ambient.r/(nLights+1), ambient.g/(nLights+1), ambient.b/(nLights+1), 1.0); -} - void SetAmbient(COLOR c) { ambient = c; - - UpdateAmbient(); } void AddLight(LIGHT light) { @@ -27,8 +21,6 @@ void AddLight(LIGHT light) { lights[nLights] = light; nLights++; - - UpdateAmbient(); } void ResetLights() { @@ -38,8 +30,3 @@ void ResetLights() { UpdateAmbient(); } } - -void ApplyLightScale() { - glAccum(GL_LOAD, 1); - glAccum(GL_RETURN, nLights+1); -} -- cgit v1.2.3