Skip to content

Commit

Permalink
Fix some team colors not working anymore, closes #91
Browse files Browse the repository at this point in the history
  • Loading branch information
Gama11 committed Jul 28, 2016
1 parent 9cd885f commit dad3331
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rv/util/jogl/MaterialUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

public class MaterialUtil {
public static void setColor(ObjMaterial material, Color color) {
float[] components = new float[] { color.getRed() / 255, color.getGreen() / 255,
color.getBlue() / 255, 1 };
float[] components = new float[] { (float) color.getRed() / 255,
(float) color.getGreen() / 255, (float) color.getBlue() / 255, 1 };
material.setAmbient(components);
material.setDiffuse(components);
}
Expand Down

0 comments on commit dad3331

Please sign in to comment.