
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
glsl-barrel-pincushion
Advanced tools
Distort the UV with barrel or pincushion effect. Adapted from this shadertoy.

npm i glsl-barrel-pincushion -S
strength > 0 for barrel distortion, strength < 0 for pincushion.
uniform float uTime;
#pragma glslify: barrelPincushion = require(glsl-barrel-pincushion)
#pragma glslify: rectangle = require(glsl-2d-primitives/rectangle)
attribute vec2 vUv;
void main() {
vec2 st = barrelPincushion(vUv, sin(uTime));
float shape = rectangle(st, vec2(0.5));
gl_FragColor = vec4(color, shape);
}
MIT. See LICENSE for details.
FAQs
Distort UV using barrel or pincushion
The npm package glsl-barrel-pincushion receives a total of 2 weekly downloads. As such, glsl-barrel-pincushion popularity was classified as not popular.
We found that glsl-barrel-pincushion demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.