Revision b424b062
Added by Leszek Koltunski over 5 years ago
src/main/java/org/distorted/examples/inflate/InflateRenderer.java | ||
---|---|---|
110 | 110 |
float factor = ( width*mObjHeight > height*mObjWidth ) ? (SCALE*height)/mObjHeight : (SCALE*width)/mObjWidth; |
111 | 111 |
mMove.set( (width-factor*mObjWidth)/2 , (height-factor*mObjHeight)/2 , 0); |
112 | 112 |
mScale.set(factor,factor,factor); |
113 |
mCenter.set( (float)mObjWidth/2, (float)mObjHeight/2, -(float)mObjDepth/2 );
|
|
113 |
mCenter.set( (float)mObjWidth/2, (float)mObjHeight/2, (float)mObjDepth/2 ); |
|
114 | 114 |
mScreen.resize(width, height); |
115 | 115 |
} |
116 | 116 |
|
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.