glsl-y-rotate:生成旋转矩阵的GLSL模块

时间:2021-05-18 14:48:28
【文件属性】:
文件名称:glsl-y-rotate:生成旋转矩阵的GLSL模块
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-18 14:48:28
GLSL glsl-y-rotate 生成旋转矩阵的GLSL模块。 推荐使用 。 用法 2D(垫子2) #pragma glslify : rotate = require(glsl - y - rotate) const float DEG_TO_RAD = 3.141592653589793 / 180.0 ; void main( void ) { vec2 pos = vec2 ( 1.0 , 0.0 ); pos = rotate( 45.0 * DEG_TO_RAD) * pos; } 3D(mat3) #pragma glslify : rotateX = require(glsl - y - rotate / rotateX) #pragma glslify : rotateY = require(glsl - y - rotate / rotateY)
【文件预览】:
glsl-y-rotate-master
----.gitignore(3KB)
----package.json(685B)
----LICENSE(1KB)
----README.md(1KB)
----rotate.glsl(159B)
----rotateY.glsl(194B)
----rotateX.glsl(194B)
----rotateZ.glsl(194B)
----rotateQ.glsl(541B)

网友评论