Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/content/tutorials/ko/intro-to-glsl.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -621,22 +621,21 @@ p5.js가 제공하는 유니폼의 전체 목록은 [p5.js WebGL Mode Architectu
${begin('texcoord')}
attribute vec2 aTexCoord;
${end('texcoord')}
attribute vec4 aVertexColor;

uniform mat4 uModelViewMatrix;
uniform mat4 uProjectionMatrix;

${begin('varying')}
varying vec2 vTexCoord;
${end('varying')}
varying vec4 vVertexColor;

void main() {
// 카메라 변환을 적용합니다
vec4 viewModelPosition = uModelViewMatrix * vec4(aPosition, 1.0);
// 이 정점이 어디에 그려질지 WebGL에 알려 줍니다
gl_Position = uProjectionMatrix * viewModelPosition;
${begin('assign')}
vVertexColor = aVertexColor;
vTexCoord = aTexCoord;
${end('assign')}
}
`}>
Expand Down