Revision b424b062
Added by Leszek Koltunski over 5 years ago
src/main/java/org/distorted/examples/cubes/CubesRenderer.java | ||
---|---|---|
117 | 117 |
float factor = ( width*mObjHeight > height*mObjWidth ) ? (0.75f*height)/mObjHeight : (0.75f*width)/mObjWidth; |
118 | 118 |
mMove.set( (width-factor*mObjWidth)/2 , (height-factor*mObjHeight)/2 , 0); |
119 | 119 |
mScale.set(factor,factor,factor); |
120 |
mCenter.set( (float)mObjWidth/2, (float)mObjHeight/2, -(float)mObjDepth/2 );
|
|
120 |
mCenter.set( (float)mObjWidth/2, (float)mObjHeight/2, (float)mObjDepth/2 ); |
|
121 | 121 |
mScreen.resize(width, height); |
122 | 122 |
} |
123 | 123 |
|
Also available in: Unified diff
Make Matrix effects Rotate and Quaternion actually correct when it comes to the Z-axis. Also corresponding adjustments in apps.