Revision 644c21f2
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/library/effectqueue/EffectQueueFragment.java | ||
---|---|---|
54 | 54 |
|
55 | 55 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
56 | 56 |
|
57 |
void compute(long currTime,float halfX, float halfY, float halfZ)
|
|
57 |
void compute(long currTime) |
|
58 | 58 |
{ |
59 | 59 |
if( currTime==mTime ) return; |
60 | 60 |
if( mTime==0 ) mTime = currTime; |
... | ... | |
68 | 68 |
{ |
69 | 69 |
EffectMessageSender.newMessage(mEffects[i]); |
70 | 70 |
} |
71 |
|
|
72 |
mUniforms[NUM_UNIFORMS*i+5] -= halfX; |
|
73 |
mUniforms[NUM_UNIFORMS*i+6] -= halfY; |
|
74 |
mUniforms[NUM_UNIFORMS*i+7] -= halfZ; |
|
75 | 71 |
} |
76 | 72 |
|
77 | 73 |
mTime = currTime; |
Also available in: Unified diff
Moving the Vertex and Fragment centers of effect to the center of the Mesh.