You declared a function called noise
returning a variable of type float
. However, in the code for that function you never return anything (i.e. you return void
).
So either change the return type of your function:
void noise(vec2 coord) {
// ...
}
or make sure you actually return a float value:
float noise(vec2 coord) {
// ...
return 0.0;
}