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/multiblur/MultiblurRenderer.java
169 169

  
170 170
    	float factor    = 0.15f*mScreenMin/OBJ_SIZE;
171 171
    	mScale.set(factor,factor,factor);
172
      mCenter.set((float)OBJ_SIZE/2, (float)OBJ_SIZE/2, -(float)OBJ_SIZE/2 );
172
      mCenter.set((float)OBJ_SIZE/2, (float)OBJ_SIZE/2, (float)OBJ_SIZE/2 );
173 173
      mMove.set( (width -factor*OBJ_SIZE)/2 ,(height-factor*OBJ_SIZE)/2 ,0);
174 174
      computeMoveVectors();
175 175
      mScreen.resize(width, height);

Also available in: Unified diff