Project

General

Profile

« Previous | Next » 

Revision e50f49b6

Added by Leszek Koltunski about 4 years ago

All apps converted to the new V&F center schema!

View differences:

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

  
105 105
  void apply(DistortedEffects effects)
106 106
    {
107
    Static3D midLeftMatrix= new Static3D(-mWidth/2,0,0);          // matrix effects center is in the middle
108
    Static3D midRight     = new Static3D(mWidth,mHeight/2,0);     //
109
    Static3D tadRight     = new Static3D(3*mWidth/4,mHeight/2,0); // vertex & fragment - in the lower-left
110
    Static4D windRegion   = new Static4D(0,0,0,mHeight);          //
107
    Static3D midLeft   = new Static3D(-mWidth/2,0,0);
108
    Static3D midRight  = new Static3D( mWidth/2,0,0);
109
    Static3D tadRight  = new Static3D( mWidth/4,0,0);
110
    Static4D windRegion= new Static4D(0,0,0,mHeight);
111 111

  
112 112
    setWind(0);
113 113

  
114 114
    effects.apply( new MatrixEffectScale(scaleFactor) );
115
    effects.apply( new MatrixEffectShear(shearFactor,midLeftMatrix) );
115
    effects.apply( new MatrixEffectShear(shearFactor,midLeft) );
116 116

  
117 117
    effects.apply( new VertexEffectDeform(deformForce,midRight) );
118 118
    effects.apply( new VertexEffectWave(windDynamic1, midRight, windRegion) );

Also available in: Unified diff