Project

General

Profile

« Previous | Next » 

Revision dae661e9

Added by Leszek Koltunski about 5 years ago

Invert the order of Matrix Effects. Now, just as in the other queues, the first matrix effect is actually the first to act on the object - not the other way around!

View differences:

src/main/java/org/distorted/examples/blur/BlurRenderer.java
79 79
      mBufferScale= new Static3D(1,1,1);
80 80

  
81 81
      mBufferEffects = new DistortedEffects();
82
      mBufferEffects.apply(new MatrixEffectMove(mBufferMove));
83 82
      mBufferEffects.apply(new MatrixEffectScale(mBufferScale));
83
      mBufferEffects.apply(new MatrixEffectMove(mBufferMove));
84 84

  
85 85
      mEffects = new DistortedEffects();
86 86
      mEffects.apply( new PostprocessEffectBlur(radiusDyn) );
87
      mEffects.apply(new MatrixEffectMove(mMove));
88 87
      mEffects.apply(new MatrixEffectScale(mScale));
88
      mEffects.apply(new MatrixEffectMove(mMove));
89 89
      }
90 90

  
91 91
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff