adashabeta

ProximityEffect demo 3

Flipping double-sided tiled image with local offset.

View/download project on GitHub.


// effect config
let params = {
    threshold: 64,
    runoff:    96,
    direction: "horizontal",
    attack:     0.6,
    decay:      0.6,
    accuracy:   1
};


// add effects
proxEffect.addEffect('rotateY',   180,  0);
proxEffect.addEffect('translateZ', 40,  0);
proxEffect.addEffect('scale',       1.01,  1);