How do you find the error?in your VGHD.log file it will list the error and what line of code the error took place.
this is what was reported in the vghd.log
2021-07-17T03:35:54[] WARNING[QOpenGLShader::compile(Fragment): ERROR: 4:115: 'assign' : cannot convert from '2-component vector of highp float' to 'highp float']
lets break the error into smaller pieces.
2021-07-17T03:35:54[] WARNING
[QOpenGLShader::compile(Fragment):
ERROR: 4:115:
'assign' : cannot convert from '2-component vector of highp float' to 'highp float']
the error is a 4, and it happened on line 115
the error description is
assign : cannot convert from '2-component vector of highp float' to 'highp float'
Note: Some GPU's will ignore this error and just swizzle the vectors to matchHere is the snippet of code around line 115
notice that p is assigned as a vec2 float on line 114
then on line 115 it is attempting to be converted to a vec1 float.
( we don't use vec1 as part of the language.
but I wrote that so you can see, converting from a 2 vector float to a single vector float )
vec2 p = -1.0 + 2.0 * q;
p.x *= iResolution.xy/iResolution.y;
Now there are several ways to fix the error, and you have to try them to see if it gives the desired results.
you could change line 115 to
p *= iResolution.xy/iResolution.y;
or
p *= iResolution.xy/iResolution.yx;
or
p.xy *= iResolution.xy/iResolution.y;
or
p.x *= iResolution.x/iResolution.y;
all of those will correct the vector conversion error
but not all of them will give the same results
in this case, all of the results are acceptable.