Vasken
July 23, 2018, 10:25am
1
My shader works fine for both pc and android with 13 textures, but on ios I’m getting errors after passing more than 8 textures (or in some cases 9)
TypeError: undefined is not an object (evaluating ‘this.textureUnits[textureUnit][slot]’)
So, is there any stronger limitation on textures count you can pass to shader on ios, or am I doing smth wrong?
This is my project : https://playcanvas.com/editor/scene/622827
I’m passing textures to my shader in Scripts/main.js, lines 187 and 193-205
1 Like
Vasken
July 25, 2018, 12:54pm
2
@yaustar @dave @max we need your help please
dave
July 25, 2018, 5:32pm
3
Check out webglreport.com on your device. The Max Texture Units value is the value you’re looking for. I believe it is 8 on iPhones.
1 Like
farzan
April 7, 2025, 12:51pm
5
Hi @dave ,
I’ve had a similar issue, and my project works fine on all iOS devices—with the exception of the iPhone Xs. In Chrome, it functions fine, however in Safari, the iframe either doesn’t load or, when it does, displays a white screen.