GLSL does not allow nested function definitions; the starField() helper must live at top-level alongside hash3/noise3/fbm3.