Skip to content

Commit

Permalink
Modify voronoi filter's some args
Browse files Browse the repository at this point in the history
  • Loading branch information
nekocode committed Aug 12, 2016
1 parent eb2c257 commit 74d87f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/res/raw/voronoi_buf_a.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ vec4 GenerateSeed (in vec2 fragCoord)
float dR = grayScale(texture2D( iChannel0, uv + dataStep.xz ));
float dU = grayScale(texture2D( iChannel0, uv - dataStep.zy ));
float dD = grayScale(texture2D( iChannel0, uv + dataStep.zy ));
float w = float( d*0.999 > max(max(dL, dR), max(dU, dD)) );
float w = float( d*0.99 > max(max(dL, dR), max(dU, dD)) );

w = max(w, texture2D( iChannel1, uv ).w*.9); // get some from previous frame

Expand Down

0 comments on commit 74d87f6

Please sign in to comment.