Project

General

Profile

« Previous | Next » 

Revision b424b062

Added by Leszek Koltunski over 5 years ago

Make Matrix effects Rotate and Quaternion actually correct when it comes to the Z-axis. Also corresponding adjustments in apps.

View differences:

src/main/java/org/distorted/examples/quaternion/QuaternionRenderer.java
117 117

  
118 118
    float factor = 0.5f*(width>height ? height/h:width/w);
119 119

  
120
    mCenter.set(w/2,h/2,-d/2);
120
    mCenter.set(w/2,h/2,d/2);
121 121
    mMove.set( (width-factor*w)/2 , (height-factor*h)/2 , 0 );
122 122
    mScale.set(factor,factor,factor);
123 123

  

Also available in: Unified diff