summaryrefslogtreecommitdiffstats
path: root/light.c
diff options
context:
space:
mode:
Diffstat (limited to 'light.c')
-rw-r--r--light.c15
1 files changed, 1 insertions, 14 deletions
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);
-}