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
uniform int foo;
void main(void)
{
gl_FragColor=vec4(1.0,0.0,0.0,1.0);
}
Console
The shader doesn't have a uniform called "foo"
The compiler removes "inactive" uniforms which explains why Processing can't find it, however, this message can be very confusing for beginners.
If there's no way to detect that case, how about replacing the message with The shader doesn't have a uniform called "foo" or the "foo" uniform is declared but not used ?
The text was updated successfully, but these errors were encountered:
Here's the minimal code to get that (non crashing) message.
PDE
GLSL
Console
The compiler removes "inactive" uniforms which explains why Processing can't find it, however, this message can be very confusing for beginners.
If there's no way to detect that case, how about replacing the message with
The shader doesn't have a uniform called "foo" or the "foo" uniform is declared but not used
?The text was updated successfully, but these errors were encountered: