Project

General

Profile

« Previous | Next » 

Revision 88d8e57c

Added by Leszek Koltunski over 7 years ago

Minor.

View differences:

src/main/java/org/distorted/library/effect/PostprocessEffectGlow.java
60 60
    return mGlowRadius.get(uniforms,index,currentDuration,step);
61 61
    }
62 62

  
63

  
64 63
///////////////////////////////////////////////////////////////////////////////////////////////////
65 64

  
66 65
  public int apply(float[] uniforms, int index, float qualityScale, DistortedFramebuffer buffer)
src/main/java/org/distorted/library/effect/VertexEffectDeform.java
148 148
      + "float one_over_denom = 1.0/(denom-0.001*(sign(denom)-1.0)); \n"
149 149
      + "vec2 Aw = A*maxps; \n"
150 150
      + "vec2 quot = ps / maxps; \n"
151
      + "quot = quot*quot; \n"                          // ( (x/W)^2 , (y/H)^2 ) where x,y are distances from V to center
151
      + "quot = quot*quot; \n"                                                 // ( (x/W)^2 , (y/H)^2 ) where x,y are distances from V to center
152 152

  
153 153
      + "float denomV = 1.0 / (aForce.y + Aw.x); \n"
154 154
      + "float denomH = 1.0 / (aForce.x + Aw.y); \n"

Also available in: Unified diff