Constructing a material that uses a cube texture and a regular 2d texture, if the regular texture is not set results in errors for some browsers:
- In Chromium the error
GL_INVALID_OPERATION: Two textures of different types use the same sampler locationis produced, and the material is not displayed.
- In Safari the material is not displayed, but no errors are produced (silently fails).
- In Firefox, it works as expected.
All browsers work as expected if the texture is set, or if two regular textures are used (i.e. one isn’t a cube texture.
This might be a browser bug, as I’d expect the usual behaviour for unbound textures (reads 0,0,0,1) to apply in this case too, across all browsers.