이 API는 실험적입니다
향후 p5.js 버전에서 동작이 변경될 수 있습니다.
Creates a 4x4 matrix inside a p5.strands shader callback.
mat4() is the same function as transform3D(), named the way it is in GLSL.
Passing a 3x3 matrix to mat4() extends it with the identity matrix, which turns a 2D transform into a 3D one that leaves the z-axis alone.
Note: mat4() can only be used inside a p5.strands shader callback.
예제
구문
mat4(values1, values2, ..., valuesn)
매개변수
values1, ..., valuesn
Number: nothing for the identity matrix, one number, one matrix, 4 column vectors, or 16 values in column-major order.
반환값
a 4x4 matrix.
Notice any errors or typos? Please let us know. Please feel free to edit src/strands/strands_transform.js and open a pull request!