Project

General

Profile

« Previous | Next » 

Revision 23b733db

Added by Leszek Koltunski about 4 years ago

Further corrections.

View differences:

src/main/java/org/distorted/library/effectqueue/EffectQueuePostprocess.java
161 161
    MeshBase mesh = node.getMesh();
162 162
    DistortedEffects effects = node.getEffects();
163 163

  
164
    float halfW = mesh.getBoundingX();
165
    float halfH = mesh.getBoundingY();
166
    float halfZ = mesh.getBoundingZ();
167

  
168 164
    int width   = buffer.getWidth();
169 165
    int height  = buffer.getHeight();
170 166

  
......
183 179

  
184 180
    float inflate=0.0f;
185 181

  
186
    matrix.send(distance, mipmap, projection, halfW, halfH, halfZ, 2);
182
    matrix.send(distance, mipmap, projection, mesh, 2);
187 183

  
188 184
    if( mHalo!=0.0f )
189 185
      {
190
      inflate = matrix.magnify(projection, width, height, mipmap, halfW, halfH, halfZ, mHalo);
186
      inflate = matrix.magnify(projection, width, height, mipmap, mesh, mHalo);
191 187
      }
192 188

  
193 189
    vertex.send(inflate,2);

Also available in: Unified diff