π available at your convenience for use within glslify.
PI = require('glsl-pi')
This package exports the value of Pi
as supplied by google:
3.14159265359. You can use it like so:
# PI = require('glsl-pi')uniform float time;void
This is a really simple package but it saves me having to
lookup/copy/paste the value every time. Also a useful
alternative to using
#define PI that's less leaky :)
See stackgl/contributing for details.
MIT. See LICENSE.md for details.