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/triblur/TriblurRenderer.java
220 220
      float factor2 = 0.80f*factor1;
221 221
      mScale1.set(factor1,factor1,factor1);
222 222
      mScale2.set(factor2,factor2,factor2);
223
      mCenter.set((float)OBJ_SIZE/2, (float)OBJ_SIZE/2, -(float)OBJ_SIZE/2 );
223
      mCenter.set((float)OBJ_SIZE/2, (float)OBJ_SIZE/2, (float)OBJ_SIZE/2 );
224 224
      mMove1.set( (width -factor1*OBJ_SIZE)/2 ,(height-factor1*OBJ_SIZE)/2 ,0);
225 225
      mMove2.set( (width -factor2*OBJ_SIZE)/2 ,(height-factor2*OBJ_SIZE)/2 ,0);
226 226
      mScreen.resize(width, height);

Also available in: Unified diff