Skip to content

Commit 6531423

Browse files
committed
Website updates
1 parent 6a22ad3 commit 6531423

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dist/en/main/examples/webgl-layer-swipe.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,10 @@ <h5 class="modal-title" id="tag-example-title"></h5>
135135
<div class="row-fluid">
136136
<div class="span12">
137137
<p id="shortdesc">Cropping a WebGL tile layer</p>
138-
<div id="docs"><p>The <code>prerender</code> and <code>postrender</code> events on a WebGL tile layer can be used to manipulate the WebGL context before and after rendering. In this case, the <a href="https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/scissor"><code>gl.scissor()</code></a> method is called to clip the top layer based on the position of a slider.</p>
138+
<div id="docs"><p>The <code>prerender</code> and <code>postrender</code> events on a WebGL tile layer can be used to manipulate the WebGL context before and after rendering. In this case, the <a href="https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/scissor"><code>gl.scissor()</code></a> method is called to clip the top layer based on the position of a slider. <p><b>Note: </b>This example is minimalist and works as there is only one WebGL layer rendered. That might works as well if the layers are drawn to different contexts. This does not apply to
139+
to several layers drawn to a single context, such as set with the &#39;className&#39; property to &#39;canvas3d&#39; on multiple layers. In such case, it&#39;s would be wise
140+
adapt your code using &#39;gl.clear&#39; and other tweaks to the prerender/postrender event.</p>
141+
</p>
139142
</div>
140143
</div>
141144
</div>

0 commit comments

Comments
 (0)