I am getting a RuntimeError: Vertex shader failed to compile in iOS.
This does not occur in desktop browsers.
The app in question can be found in: http://mgiraldo.github.io/pic/
The error log starts with:
[Cesium WebGL] Vertex shader compile log: ERROR: 0:7: ‘’ : wrong operand types no operation ' ’ exists that takes a left-hand operand of type ‘uniform lowp samplerCube’ and a right operand of type ‘highp 4-component vector of float’ (or there is no acceptable conversion)
ERROR: 0:7: ‘assign’ : cannot convert from ‘uniform lowp samplerCube’ to ‘Position highp 4-component vector of float’
``
Any idea why this is happening?
iOS 9
navigator.appVersion: “5.0 (Macintosh; Intel Mac OS X 10_11) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Safari/601.1.42”
dihand
February 14, 2023, 8:05pm
4
similar BUG in Jan 2023 -
Win 11 x64, last Chrome v110 , ASUS ROG STRIX 9750H 16Gb RTX2070
Cesium.js:50 [Cesium WebGL] Vertex shader compile log: ERROR: 0:15: ‘a_normal’ : undeclared identifier
ERROR: 0:15: ‘normalize’ : no matching overloaded function found
ERROR: 0:15: ‘=’ : dimension mismatch
ERROR: 0:15: ‘=’ : cannot convert from ‘const mediump float’ to ‘highp 3-component vector of float’
BUT in my Macbook M1 today last Chrome v110 all good work. Also all good work severals day ago & last 2 years )
Im simply load 3D models without ANY my shaders
Hi @dihand ,
In the January release, we included moving to WebGL 2 by default, which requires an update of any custom shader code . If you are still having trouble, I would suggest opening a new thread and including a Sandcastle example which replicates the issue.
1 Like