Project

General

Profile

« Previous | Next » 

Revision 698ad0a8

Added by Leszek Koltunski about 4 years ago

Move the Effects.setStretch to Meshbase.setStretch

View differences:

src/main/java/org/distorted/examples/triblur/TriblurRenderer.java
84 84
      mView = v;
85 85

  
86 86
      MeshCubes mesh = new MeshCubes(1,1,1);
87
      mesh.setStretch(OBJ_SIZE,OBJ_SIZE,OBJ_SIZE);
87 88

  
88 89
      mTex = new DistortedTexture();
89 90

  
......
126 127
        mBlur[i]         = new PostprocessEffectBlur(mEffectVector[i]);
127 128
        mGlow[i]         = new PostprocessEffectGlow(mEffectVector[i], new Static4D(1.0f,1.0f,1.0f,0.5f) );
128 129
        chroma[i]        = new FragmentEffectChroma( new Static1D(0.3f), chromaVector[i]);
129
        effects[i]       = new DistortedEffects(OBJ_SIZE,OBJ_SIZE,OBJ_SIZE);
130

  
130
        effects[i]       = new DistortedEffects();
131 131
        effects[i].apply(mBlur[i]);
132 132
        effects[i].apply(chroma[i]);
133 133

  

Also available in: Unified diff