glslCanvas
glslCanvas copied to clipboard
Simple tool to load GLSL shaders on HTML Canvas using WebGL
I notice the `mousemove` event listener (that is attached to `document`) is not released in the `destroy()` method, causing a leak. /Fredrik Blomqvist
I tried to clone the whole repo and tried to serve the html file with a simple server. After visiting that html file in the browser all I see is...
Hey everyone, I have the following shader: https://glslsandbox.com/e#81208.1 It responds to mouse movement smoothly. However, the same shader using glslsandbox: https://shaders-threejs.glitch.me Moving around the cursor causes the screen to flash...
Here is a minimal reproducible example of the issue. I should get just a gray canvas but it looks like u_gray uniform is always zero. Am I doing something wrong?...
I tested very simple html page(below) as local file, and it shows nothing. ``` html ``` It seems an instant render overwritten or ignored if render timing is too fast....
- Add muted attribute to video element to allow autoplay for modern browsers. - Add a simple timeout to trigger video play, since autoplay wasn't working. Needs a more elegant...
Bit of a webgl noob here, please excuse if the answer is obvious. How would I go about creating multiple shader passes? I cannot find any documentation on this, other...
Hi, I'm kinda surprised that having an idle animation with glslCanvas causes a non-negligible amount of CPU usage. When my animation is idle, it uses 6-7% of my CPU, and...
The `.setMouse()` function returns faulty values. Please excuse if I am using the function incorrectly. For example, when passing `sandbox.useMouse({ x: 0, y: 0 })` and logging `sandbox.uniforms`, `u_mouse` returns...
Hi, Is it possible to draw vertices? For instance, with this [vertex shader]](https://github.com/hrbigelow/wij-wemnan/blob/master/shaders/scatter-v.cc), I eventually call it with: ```javascript write_to_gl: function() { this.gl.bindBuffer(this.gl.ARRAY_BUFFER, this.glbuf); this.gl.bufferData(this.gl.ARRAY_BUFFER, this.jsbuf, this.gl.STATIC_DRAW); this.gl.bindBuffer(this.gl.ARRAY_BUFFER, null); }...