0
참조 http://webglfundamentals.org/webgl/lessons/webgl-3d-orthographic.html 벡터 셰이더에는 mat4
과 vec4
의 곱셈이 있습니다.glsl에서 벡터로 행렬 곱셈
attribute vec4 a_position;
uniform mat4 u_matrix;
void main() {
// Multiply the position by the matrix.
gl_Position = u_matrix * a_position;
}
4x4 매트릭스에 1x4 매트릭스를 어떻게 곱할 수 있습니까? 아니요 gl_Position = a_position * u_matrix;
누구든지 설명 할 수 있습니까?