Project

General

Profile

« Previous | Next » 

Revision 687263cc

Added by Leszek Koltunski about 4 years ago

Move the 'pre-multiply mesh before applying any effects' thing from [(Xsize of texture, Ysize of texture) x Mesh's zFactor] to Effects.setStretch(sx,sy,sz)

View differences:

src/main/java/org/distorted/examples/wind/WindEffectsManager.java
57 57

  
58 58
///////////////////////////////////////////////////////////////////////////////////////////////////
59 59

  
60
  WindEffectsManager(DistortedTexture texture)
60
  WindEffectsManager(int width, int height)
61 61
    {
62 62
    lastTime = 0;
63 63

  
64
    mHeight = texture.getHeight();
65
    mWidth  = texture.getWidth();
64
    mWidth = width;
65
    mHeight= height;
66 66

  
67 67
    shearFactor = new Static3D(0,0,0);
68 68
    scaleFactor = new Static3D(1,1,1);

Also available in: Unified diff