Why isn't it possible to forward-declare a function within the same source file as the function body itself.
Example:
vec3 getNormal();
void main(void)
{
vec3 normal = getNormal();
}
vec3 getNormal()
{
return gl_Normal;
}
I get "getNormal is already defined..." errors.
It works fine if the getNormal function body is in another shader attachment...



