glsl-y-rotate
A GLSL Module which generates a rotation matrix.
Recommend using glslify.
Usage
2D (mat2)
# rotate = require(glsl-y-rotate) const float DEG_TO_RAD = 3.141592653589793 / 180.0; void
3D (mat3)
# rotateX = require(glsl-y-rotate/rotateX) # rotateY = require(glsl-y-rotate/rotateY) # rotateZ = require(glsl-y-rotate/rotateZ) const float DEG_TO_RAD = 3.141592653589793 / 180.0; void
Quaternion (mat3)
# rotateQ = require(glsl-y-rotate/rotateQ) const float DEG_TO_RAD = 3.141592653589793 / 180.0; void