My goal, I want to use the ShaderMaterial to remove the red and blue color channel and only show the green one. This is a small example, as my actual goal is to combine the different color channels of multiple textures.
As you can see, the image loads find, but in the shader, I get zeros for all values, therefore the purple result (only red and blue). Any idea why?
If you modify the code so that the texture object updates immediately, you’ll get a cross-origin error. I’m not sure why it doesn’t show this error immediately, but it may be related.
Usually, setting baseImage.crossOrigin = "anonymous"; should fix this, but I think your host won’t allow this, since the onerror event is triggered when you try this.