Then I have noticed that the u_mouse and the u_resolution are passed in different scale. The mouse values where multiplied by this.realToCSSPixels, while the mouse no. I have mutliplied also the the resolution by this.realToCSSPixels, and now u_mouse and u_resolution are under the same scale factor.
After changing the glslCanvas file I have also run the build, that's why some changes are also into the dist folder.
I was having a weird issue with the u_mouse uniform while mapping the mouse to the center of the screen using:
Then I have noticed that the u_mouse and the u_resolution are passed in different scale. The mouse values where multiplied by this.realToCSSPixels, while the mouse no. I have mutliplied also the the resolution by this.realToCSSPixels, and now u_mouse and u_resolution are under the same scale factor.
After changing the glslCanvas file I have also run the build, that's why some changes are also into the dist folder.