Project

General

Profile

« Previous | Next » 

Revision 644c21f2

Added by Leszek Koltunski about 4 years ago

Moving the Vertex and Fragment centers of effect to the center of the Mesh.

View differences:

src/main/java/org/distorted/library/effectqueue/EffectQueueVertex.java
56 56

  
57 57
///////////////////////////////////////////////////////////////////////////////////////////////////
58 58
  
59
  void compute(long currTime,float halfX, float halfY, float halfZ)
59
  void compute(long currTime)
60 60
    {
61 61
    if( currTime==mTime ) return;
62 62
    if( mTime==0 ) mTime = currTime;
......
70 70
        {
71 71
        EffectMessageSender.newMessage(mEffects[i]);
72 72
        }
73

  
74
      mUniforms[NUM_UNIFORMS*i+5] -= halfX;
75
      mUniforms[NUM_UNIFORMS*i+6] -= halfY;
76
      mUniforms[NUM_UNIFORMS*i+7] -= halfZ;
77 73
      }
78 74

  
79 75
    mTime = currTime;

Also available in: Unified diff