glsl-polar-decart

1.0.1 • Public • Published

glsl-polar-decart

A stackgl library.

Converts coordinates from decart to polar or back.

Usage

vec2 uv = gl_FragCoord.xy / u_resolution;
vec2 polar = decartToPolar(uv);
gl_FragColor.rg += polar.x;
gl_FragColor.b += polar.y;
gl_FragColor.a = 1.;

License

MIT. See LICENSE.md for details.

Package Sidebar

Install

npm i glsl-polar-decart

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

2.77 kB

Total Files

5

Last publish

Collaborators

  • illus0r