Skip to content

Commit 93f238a

Browse files
committed
fix formatting
1 parent d26849c commit 93f238a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webgl/lessons/webgl-3d-orthographic.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ in vec4 a_position;
667667
in vec4 a_color;
668668
</pre>
669669
<p>both of which are 'vec4' but when we tell WebGL how to take data out of our buffers we used</p>
670-
<pre class="prettyprint showlinemods">
670+
<pre class="prettyprint showlinemods">{{#escapehtml}}
671671
// Tell the attribute how to get data out of positionBuffer (ARRAY_BUFFER)
672672
var size = 3; // 3 components per iteration
673673
var type = gl.FLOAT; // the data is 32bit floats
@@ -688,7 +688,7 @@ var stride = 0; // 0 = move forward size * sizeof(type) each
688688
var offset = 0; // start at the beginning of the buffer
689689
gl.vertexAttribPointer(
690690
colorAttributeLocation, size, type, normalize, stride, offset);
691-
</pre>
691+
{{/escapehtml}}</pre>
692692
<p>
693693
That '3' in each of those says only to pull 3 values out of the buffer per attribute
694694
per iteration of the vertex shader.

0 commit comments

Comments
 (0)