Permalink
Browse files

slowed down rotation

  • Loading branch information...
1 parent 63237de commit 5da3164e27d59dc5f3c6853190df876d3624add0 @alihelmy committed Oct 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 LessonFour/com/onehandstand/lwjgltutorial/lessonfour/ShaderTriangle.java
View
2 LessonFour/com/onehandstand/lwjgltutorial/lessonfour/ShaderTriangle.java
@@ -60,7 +60,7 @@ public ShaderTriangle() {
public void update(long timeElapsed) {
currentFade=(float)(Math.sin(timeElapsed / 1000.0 * (2*3.14) / 5) / 2 + 0.5);
float movement=(float)Math.sin(timeElapsed/1000.0 * (2.314)/5);
- float angle=(float)(timeElapsed/1000.0*45)%360;
+ float angle=(float)(timeElapsed/100000.0*45)%360;
Vector3f zAxis=new Vector3f(0f, 0f, 1f);
Matrix4f translationMatrix=new Matrix4f();
translationMatrix.setIdentity();

0 comments on commit 5da3164

Please sign in to comment.