W3C home > Mailing lists > Public > public-media-capture-logs@w3.org > February 2017

Re: [mediacapture-depth] Improve examples

From: Kenneth Rohde Christiansen via GitHub <sysbot+gh@w3.org>
Date: Wed, 22 Feb 2017 13:28:49 +0000
To: public-media-capture-logs@w3.org
Message-ID: <issue_comment.created-281668939-1487770127-sysbot+gh@w3.org>
The second example is impossible to follow as it only does half of 
what it says and just contains a lot of ... :-)

 does more or less what it says, but contains optimizations using 
extensions etc. If that could be simplified somehow we might be able 
to include it some how...

Shaders could be multiline using ``

gl.shaderSource(pixel_shader, `
  precision mediump float;

  uniform sampler2D s;
  varying vec2 t;

  void main() {
    vec4 tex = texture2D(s, t); 
    gl_FragColor = vec4(tex.r, tex.g, tex.b, tex.a);


GitHub Notification of comment by kenchris
Please view or discuss this issue at 
 using your GitHub account
Received on Wednesday, 22 February 2017 13:28:55 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:27:31 UTC