|
|
@@ -3281,11 +3281,11 @@ class LZ77 { |
|
|
|
|
|
|
|
/* |
|
|
|
|
|
|
|
IMAGELENS |
|
|
|
LENS |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
class IMAGELENS extends Shader { |
|
|
|
class LENS extends Shader { |
|
|
|
|
|
|
|
// parameters |
|
|
|
float bendx = 0.1; // from 0 to 1 |
|
|
@@ -3302,8 +3302,8 @@ class IMAGELENS extends Shader { |
|
|
|
// working buffer |
|
|
|
PGraphics buffer; |
|
|
|
|
|
|
|
IMAGELENS() { |
|
|
|
name = "fxImageLens"; |
|
|
|
LENS() { |
|
|
|
name = "fxLens"; |
|
|
|
shaderListLength = gui.shaderList.size(); |
|
|
|
params.add(new Param("lens image layer", INTVAL, 0, shaderListLength-1, new int[]{RANDOM})); |
|
|
|
params.add(new Param("power x", FLOATVAL, 0.1, 10, new int[]{SAWTOOTH, TRIANG, SINE, TAN, TANINVERSE, RAMPUPDOWN, RAMP, RAMPINVERSE})); |