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