diff options
author | neoraider <devnull@localhost> | 2006-11-19 23:03:05 +0100 |
---|---|---|
committer | neoraider <devnull@localhost> | 2006-11-19 23:03:05 +0100 |
commit | 16fd248babd866be5535bdc43ae21099580ee3eb (patch) | |
tree | b7ca8b5e272e2e6c27637ce70e9864d78c01a1e1 /light.c | |
parent | e43bceafaba72d34dfbea1deecd56c2f694d704a (diff) | |
download | libzoom-16fd248babd866be5535bdc43ae21099580ee3eb.tar libzoom-16fd248babd866be5535bdc43ae21099580ee3eb.zip |
Render-Qualitaet durch neue Render()-Funktion erhoeht.
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); -} |