Hi there,
now I would like to ask for support for the issue I encountered:
I tried to simulate the Fresnel effect by applying a mask that lets the image on the sphere fade from refracting in the center to reflecting at the edge. I created an auxiliary sphere at the right for making the mask visible and it works fine so far:
https://webentwicklung.ulrichbangert.de/panorama-reflection-sphere-5-light-25-cubecamera-b.html
However when I apply the mask to the original sphere:
https://webentwicklung.ulrichbangert.de/panorama-reflection-sphere-5-light-25-cubecamera-a.html
WebGL complains:
WebGL: INVALID_OPERATION: bindTexture: textures can not be used with multiple targets
I don’t understand this error. Is there some recursion due to the fact that the captured mask is applied to the same sphere where it was captured from? I understood things that way that, when capturing a texture by updating the cubecamera, something like a fixed bitmap is captured.
An explanation of this error would be welcome. (Although this procedure may be obsolute as there seems to be an easier way to achieve the Fresnel effect.)
Best regards - Ulrich