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.addStyle('rotateY', 180, 0);
proxEffect.addStyle('translateZ', 40, 0);
proxEffect.addStyle('scale', 1.01, 1);