Update default shaders in documentation of webgl classes

This commit is contained in:
Olivier Guyot
2018-12-07 09:30:06 +01:00
parent 8e4c66a49e
commit 27b0cf18e7
2 changed files with 6 additions and 2 deletions

View File

@@ -126,14 +126,13 @@ const FRAGMENT_SHADER = `
* * Fragment shader:
* ```
* precision mediump float;
* uniform float u_opacity;
*
* varying vec2 v_texCoord;
* varying float v_opacity;
*
* void main(void) {
* gl_FragColor.rgb = vec3(1.0, 1.0, 1.0);
* float alpha = u_opacity * v_opacity;
* float alpha = v_opacity;
* if (alpha == 0.0) {
* discard;
* }