Example #1
0
 @Override
 public void onAttached() {
   // TODO Get FOV
   projection = MathHelper.createPerspective(fieldOfView, 4.0f / 3.0f, .001f, 1000f);
   updateView();
 }
Example #2
0
 public void setScale(float scale) { // 1/2
   projection =
       MathHelper.createPerspective(
           fieldOfView * scale, 4.0f / 3.0f, .001f * scale, 1000f * scale);
   updateView();
 }