Revision a4d59c0b
Added by Leszek Koltunski over 5 years ago
src/main/java/org/distorted/examples/quaternion/QuaternionRenderer.java | ||
---|---|---|
118 | 118 |
float factor = 0.5f*(width>height ? height/h:width/w); |
119 | 119 |
|
120 | 120 |
mCenter.set(w/2,h/2,d/2); |
121 |
mMove.set( (width-factor*w)/2 , (height-factor*h)/2 , 0 );
|
|
121 |
mMove.set( (width-factor*w)/2 , (height-factor*h)/2 , -factor*d/2 );
|
|
122 | 122 |
mScale.set(factor,factor,factor); |
123 | 123 |
|
124 | 124 |
mScreen.resize(width, height); |
Also available in: Unified diff
Massive: make the coordinate system agree with that of OpenGL (i.e. invert the Y axis).