From 93f238a1aa2fb5c3c8b9255a9d0981f3718e037a Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Sat, 8 Feb 2025 01:34:14 -0800 Subject: [PATCH] fix formatting --- webgl/lessons/webgl-3d-orthographic.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webgl/lessons/webgl-3d-orthographic.md b/webgl/lessons/webgl-3d-orthographic.md index 29a596894..d4d538a6b 100644 --- a/webgl/lessons/webgl-3d-orthographic.md +++ b/webgl/lessons/webgl-3d-orthographic.md @@ -667,7 +667,7 @@ in vec4 a_position; in vec4 a_color;

both of which are 'vec4' but when we tell WebGL how to take data out of our buffers we used

-
+
{{#escapehtml}}
 // Tell the attribute how to get data out of positionBuffer (ARRAY_BUFFER)
 var size = 3;          // 3 components per iteration
 var type = gl.FLOAT;   // the data is 32bit floats
@@ -688,7 +688,7 @@ var stride = 0;        // 0 = move forward size * sizeof(type) each
 var offset = 0;        // start at the beginning of the buffer
 gl.vertexAttribPointer(
     colorAttributeLocation, size, type, normalize, stride, offset);
-
+{{/escapehtml}}

That '3' in each of those says only to pull 3 values out of the buffer per attribute per iteration of the vertex shader.