I have a question/feature-request about the optimalisation of shaders within ThreeJS. After a quick look, I’ve noticed that the shaders are build from string on runtime. After this build the shaders are not compressed or optimized before sending it to the GPU (only the minified version of ThreeJS does include some sort of minified versions of the shaders).
I’m curious if you guys have looked into some sort of optimizer like: https://github.com/aras-p/glsl-optimizer/.
As the blog stated is that the performance on older hardware could rapidly improve with this optimizer. I’m not sure if current hardware will automatically optimize the given shaders, so i’m very curious if you guys have already looked into this.