Project

General

Profile

« Previous | Next » 

Revision 6c00149d

Added by Leszek Koltunski over 5 years ago

Fully move the Meshes to their own package.

View differences:

src/main/java/org/distorted/library/main/EffectQueuePostprocess.java
27 27
import org.distorted.library.effect.EffectType;
28 28
import org.distorted.library.effect.PostprocessEffect;
29 29
import org.distorted.library.effect.VertexEffect;
30
import org.distorted.library.mesh.MeshObject;
30 31
import org.distorted.library.message.EffectMessage;
31 32
import org.distorted.library.program.DistortedProgram;
32 33

  
......
161 162

  
162 163
      float halfW = input.getWidth() / 2.0f;
163 164
      float halfH = input.getHeight()/ 2.0f;
164
      float halfZ = halfW*mesh.zFactor;
165
      float halfZ = halfW*mesh.getZFactor();
165 166

  
166 167
      DistortedRenderState.setUpStencilMark(mA!=0.0f);
167 168

  
......
183 184
        GLES31.glUniform1i(mPreTextureH, 0);
184 185
        }
185 186

  
186
      GLES31.glDrawArrays(GLES31.GL_TRIANGLE_STRIP, 0, mesh.numVertices);
187
      GLES31.glDrawArrays(GLES31.GL_TRIANGLE_STRIP, 0, mesh.getNumVertices() );
187 188

  
188 189
      DistortedRenderState.unsetUpStencilMark();
189 190

  

Also available in: Unified diff