diff options
Diffstat (limited to 'light.c')
-rw-r--r-- | light.c | 15 |
1 files changed, 1 insertions, 14 deletions
@@ -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); -} |