Project

General

Profile

« Previous | Next » 

Revision 3e7bb3fd

Added by Leszek Koltunski over 4 years ago

Speed up WinEffectGlow - MEDIUM quality is fully enough.

View differences:

src/main/java/org/distorted/effects/win/WinEffectGlow.java
20 20
package org.distorted.effects.win;
21 21

  
22 22
import org.distorted.library.effect.Effect;
23
import org.distorted.library.effect.EffectQuality;
23 24
import org.distorted.library.effect.PostprocessEffectGlow;
24 25
import org.distorted.library.effect.VertexEffectSink;
25 26
import org.distorted.library.type.Dynamic1D;
......
56 57
    color.add(P2);
57 58
    color.add(P1);
58 59

  
59
    mNodeEffects[0] = new PostprocessEffectGlow(haloRadiusDyn,color);
60
    PostprocessEffectGlow glow = new PostprocessEffectGlow(haloRadiusDyn,color);
61
    glow.setQuality(EffectQuality.MEDIUM);
62

  
63
    mNodeEffects[0] = glow;
60 64

  
61 65
    Dynamic1D degreeDyn= new Dynamic1D(duration,1.0f);
62 66
    degreeDyn.add(new Static1D(1.0f));

Also available in: Unified diff