From 5110106ecd289e3cee15a050b7be8bb50cda5b43 Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Tue, 23 Jan 2024 22:39:01 -0800 Subject: [PATCH] typo --- webgl/lessons/ko/webgl-less-code-more-fun.md | 2 +- webgl/lessons/webgl-less-code-more-fun.md | 2 +- webgl/lessons/zh_cn/webgl-less-code-more-fun.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/webgl/lessons/ko/webgl-less-code-more-fun.md b/webgl/lessons/ko/webgl-less-code-more-fun.md index 615a9f6b7..1c5de347f 100644 --- a/webgl/lessons/ko/webgl-less-code-more-fun.md +++ b/webgl/lessons/ko/webgl-less-code-more-fun.md @@ -119,7 +119,7 @@ gl.enableVertexAttribArray(a_normalLoc); gl.vertexAttribPointer(a_normalLoc, normalNumComponents, gl.FLOAT, false, 0, 0); gl.bindBuffer(gl.ARRAY_BUFFER, texcoordBuffer); gl.enableVertexAttribArray(a_texcoordLoc); -gl.vertexAttribPointer(a_texcoordLoc, texcoordNumComponents, gl.FLOAT, 0, 0); +gl.vertexAttribPointer(a_texcoordLoc, texcoordNumComponents, gl.FLOAT, false, 0, 0); // (사용 방식에 따라서)초기화 시점 또는 그리는 시점에 var someWorldViewProjectionMat = computeWorldViewProjectionMatrix(); diff --git a/webgl/lessons/webgl-less-code-more-fun.md b/webgl/lessons/webgl-less-code-more-fun.md index bde20d0f8..33dc8b9c8 100644 --- a/webgl/lessons/webgl-less-code-more-fun.md +++ b/webgl/lessons/webgl-less-code-more-fun.md @@ -119,7 +119,7 @@ gl.enableVertexAttribArray(a_normalLoc); gl.vertexAttribPointer(a_normalLoc, normalNumComponents, gl.FLOAT, false, 0, 0); gl.bindBuffer(gl.ARRAY_BUFFER, texcoordBuffer); gl.enableVertexAttribArray(a_texcoordLoc); -gl.vertexAttribPointer(a_texcoordLoc, texcoordNumComponents, gl.FLOAT, 0, 0); +gl.vertexAttribPointer(a_texcoordLoc, texcoordNumComponents, gl.FLOAT, false, 0, 0); // At init or draw time depending on use. var someWorldViewProjectionMat = computeWorldViewProjectionMatrix(); diff --git a/webgl/lessons/zh_cn/webgl-less-code-more-fun.md b/webgl/lessons/zh_cn/webgl-less-code-more-fun.md index 68c71954c..c2d54c144 100644 --- a/webgl/lessons/zh_cn/webgl-less-code-more-fun.md +++ b/webgl/lessons/zh_cn/webgl-less-code-more-fun.md @@ -116,7 +116,7 @@ gl.enableVertexAttribArray(a_normalLoc); gl.vertexAttribPointer(a_normalLoc, normalNumComponents, gl.FLOAT, false, 0, 0); gl.bindBuffer(gl.ARRAY_BUFFER, texcoordBuffer); gl.enableVertexAttribArray(a_texcoordLoc); -gl.vertexAttribPointer(a_texcoordLoc, texcoordNumComponents, gl.FLOAT, 0, 0); +gl.vertexAttribPointer(a_texcoordLoc, texcoordNumComponents, gl.FLOAT, false, 0, 0); // 初始化或绘制时需要的全局变量值 var someWorldViewProjectionMat = computeWorldViewProjectionMatrix();