summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wu <lekensteyn@gmail.com>2013-11-29 23:25:55 +0100
committerPeter Wu <lekensteyn@gmail.com>2013-11-29 23:25:55 +0100
commit99b2e305f2769c6d22de7600c193036cb00db44a (patch)
tree189451f369196142ed18a7195718e4f7765f4a81
parentb31b11d90a7336f65042455a31a8182a7b83fa11 (diff)
download2iv60-robots-99b2e305f2769c6d22de7600c193036cb00db44a.tar.gz
Use a neutral color for diffuse (black)
Black! The night that ends at last!
-rw-r--r--src/RobotRace.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/RobotRace.java b/src/RobotRace.java
index 308d5de..bb47b09 100644
--- a/src/RobotRace.java
+++ b/src/RobotRace.java
@@ -167,8 +167,8 @@ public class RobotRace extends Base {
private void initLighting() {
// greyish color
float[] ambientRGBA = {0.2f, 0.2f, 0.2f, 1.0f};
- // red! the color of the blood!
- float[] diffuseRGBA = {1.0f, 0.0f, 0.0f, 1.0f};
+ // black! the dark of ages past!
+ float[] diffuseRGBA = {.0f, .0f, .0f, 1.0f};
// set the light-source colors
gl.glLightfv(GL_LIGHT0, GL_AMBIENT, ambientRGBA, 0);