You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The line number mentioned in the error is not the same line where the error actually is.
Example:
#ifdef GL_ES
precision mediump float;
#endif
#define PI 3.14159265359
void main() {
vec2 st = gl_FragCoord.xy/iResolution.xy;
vec2 origin = vec2(0.5, 0.5);
vec2 d = distance(st, origin);
float r = d;
float g = r;
float b = r;
vec3 color = vec3(r, g, b);
gl_FragColor = vec4(color,1.0);
}
Error:
Shader failed to compile
Line 97: '=' : dimension mismatch
Line 97: '=' : cannot convert from 'mediump float' to 'mediump 2-component vector of float'
Line 99: '=' : dimension mismatch
Line 99: '=' : cannot convert from 'mediump 2-component vector of float' to 'mediump float'
The text was updated successfully, but these errors were encountered:
The line number mentioned in the error is not the same line where the error actually is.
Example:
Error:
The text was updated successfully, but these errors were encountered: