Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

slowed down rotation

  • Loading branch information...
commit 5da3164e27d59dc5f3c6853190df876d3624add0 1 parent 63237de
Ali Helmy authored
2  LessonFour/com/onehandstand/lwjgltutorial/lessonfour/ShaderTriangle.java
@@ -60,7 +60,7 @@ public ShaderTriangle() {
60 60 public void update(long timeElapsed) {
61 61 currentFade=(float)(Math.sin(timeElapsed / 1000.0 * (2*3.14) / 5) / 2 + 0.5);
62 62 float movement=(float)Math.sin(timeElapsed/1000.0 * (2.314)/5);
63   - float angle=(float)(timeElapsed/1000.0*45)%360;
  63 + float angle=(float)(timeElapsed/100000.0*45)%360;
64 64 Vector3f zAxis=new Vector3f(0f, 0f, 1f);
65 65 Matrix4f translationMatrix=new Matrix4f();
66 66 translationMatrix.setIdentity();

0 comments on commit 5da3164

Please sign in to comment.
Something went wrong with that request. Please try again.