patriciogonzalezvivo / glslCanvas

Simple tool to load GLSL shaders on HTML Canvas using WebGL
http://patriciogonzalezvivo.github.io/glslCanvas/
MIT License
1.99k stars 183 forks source link

u_mouse causing flashing in shader #80

Closed aaronzshey closed 5 months ago

aaronzshey commented 2 years ago

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 blue, a markedly different effect from the expected behavior. Any ideas how I can fix this, asides from removing the u_mouse variable completely?