Visual Shader broken after setting mode to fog

Godot Version

v4.4.1.stable.official [49a5bc7b6]

Question

I’ve worked on a visual shader for procedural planets for a week now, and today I accidentally set the mode of the shader to fog, and now (after setting it back to spatial) it just gives me a load of errors and outputs a single color (which it didn’t do before).
Any Idea what I can do to get it working again?

Here are the Errors that it threw:

  ERROR: scene/resources/visual_shader.cpp:975 - Condition "!g->nodes.has(p_id)" is true.
  ERROR: scene/resources/visual_shader.cpp:975 - Condition "!g->nodes.has(p_id)" is true.
  ERROR: scene/resources/visual_shader.cpp:975 - Condition "!g->nodes.has(p_id)" is true.
  ERROR: scene/resources/visual_shader.cpp:975 - Condition "!g->nodes.has(p_id)" is true.
  ERROR: scene/resources/visual_shader.cpp:975 - Condition "!g->nodes.has(p_id)" is true.
  ERROR: scene/resources/visual_shader.cpp:975 - Condition "!g->nodes.has(p_id)" is true.
  ERROR: scene/resources/visual_shader.cpp:975 - Condition "!g->nodes.has(p_id)" is true.
  ERROR: scene/resources/visual_shader.cpp:975 - Condition "!g->nodes.has(p_id)" is true.
  ERROR: scene/resources/visual_shader.cpp:975 - Condition "!g->nodes.has(p_id)" is true.
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Node not found: "167" (relative to "/root/@EditorNode@21273/@Panel@14/@VBoxContainer@15/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@26/DockVSplitCenter/@EditorBottomPanel@7933/@VBoxContainer@7918/@WindowWrapper@16986/@HSplitContainer@16957/@TabContainer@16985/@VisualShaderEditor@27050/@HSplitContainer@26618/@GraphEdit@26655").
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Node not found: "167" (relative to "/root/@EditorNode@21273/@Panel@14/@VBoxContainer@15/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@26/DockVSplitCenter/@EditorBottomPanel@7933/@VBoxContainer@7918/@WindowWrapper@16986/@HSplitContainer@16957/@TabContainer@16985/@VisualShaderEditor@27050/@HSplitContainer@26618/@GraphEdit@26655").
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Node not found: "168" (relative to "/root/@EditorNode@21273/@Panel@14/@VBoxContainer@15/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@26/DockVSplitCenter/@EditorBottomPanel@7933/@VBoxContainer@7918/@WindowWrapper@16986/@HSplitContainer@16957/@TabContainer@16985/@VisualShaderEditor@27050/@HSplitContainer@26618/@GraphEdit@26655").
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Node not found: "168" (relative to "/root/@EditorNode@21273/@Panel@14/@VBoxContainer@15/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@26/DockVSplitCenter/@EditorBottomPanel@7933/@VBoxContainer@7918/@WindowWrapper@16986/@HSplitContainer@16957/@TabContainer@16985/@VisualShaderEditor@27050/@HSplitContainer@26618/@GraphEdit@26655").
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Node not found: "169" (relative to "/root/@EditorNode@21273/@Panel@14/@VBoxContainer@15/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@26/DockVSplitCenter/@EditorBottomPanel@7933/@VBoxContainer@7918/@WindowWrapper@16986/@HSplitContainer@16957/@TabContainer@16985/@VisualShaderEditor@27050/@HSplitContainer@26618/@GraphEdit@26655").
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Node not found: "169" (relative to "/root/@EditorNode@21273/@Panel@14/@VBoxContainer@15/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@26/DockVSplitCenter/@EditorBottomPanel@7933/@VBoxContainer@7918/@WindowWrapper@16986/@HSplitContainer@16957/@TabContainer@16985/@VisualShaderEditor@27050/@HSplitContainer@26618/@GraphEdit@26655").
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Node not found: "167" (relative to "/root/@EditorNode@21273/@Panel@14/@VBoxContainer@15/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@26/DockVSplitCenter/@EditorBottomPanel@7933/@VBoxContainer@7918/@WindowWrapper@16986/@HSplitContainer@16957/@TabContainer@16985/@VisualShaderEditor@27050/@HSplitContainer@26618/@GraphEdit@26655").
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Node not found: "184" (relative to "/root/@EditorNode@21273/@Panel@14/@VBoxContainer@15/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@26/DockVSplitCenter/@EditorBottomPanel@7933/@VBoxContainer@7918/@WindowWrapper@16986/@HSplitContainer@16957/@TabContainer@16985/@VisualShaderEditor@27050/@HSplitContainer@26618/@GraphEdit@26655").
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Node not found: "184" (relative to "/root/@EditorNode@21273/@Panel@14/@VBoxContainer@15/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@26/DockVSplitCenter/@EditorBottomPanel@7933/@VBoxContainer@7918/@WindowWrapper@16986/@HSplitContainer@16957/@TabContainer@16985/@VisualShaderEditor@27050/@HSplitContainer@26618/@GraphEdit@26655").
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Node not found: "167" (relative to "/root/@EditorNode@21273/@Panel@14/@VBoxContainer@15/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@26/DockVSplitCenter/@EditorBottomPanel@7933/@VBoxContainer@7918/@WindowWrapper@16986/@HSplitContainer@16957/@TabContainer@16985/@VisualShaderEditor@27050/@HSplitContainer@26618/@GraphEdit@26655").
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Node not found: "167" (relative to "/root/@EditorNode@21273/@Panel@14/@VBoxContainer@15/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@26/DockVSplitCenter/@EditorBottomPanel@7933/@VBoxContainer@7918/@WindowWrapper@16986/@HSplitContainer@16957/@TabContainer@16985/@VisualShaderEditor@27050/@HSplitContainer@26618/@GraphEdit@26655").
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Node not found: "184" (relative to "/root/@EditorNode@21273/@Panel@14/@VBoxContainer@15/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@26/DockVSplitCenter/@EditorBottomPanel@7933/@VBoxContainer@7918/@WindowWrapper@16986/@HSplitContainer@16957/@TabContainer@16985/@VisualShaderEditor@27050/@HSplitContainer@26618/@GraphEdit@26655").
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Node not found: "168" (relative to "/root/@EditorNode@21273/@Panel@14/@VBoxContainer@15/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@26/DockVSplitCenter/@EditorBottomPanel@7933/@VBoxContainer@7918/@WindowWrapper@16986/@HSplitContainer@16957/@TabContainer@16985/@VisualShaderEditor@27050/@HSplitContainer@26618/@GraphEdit@26655").
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Node not found: "169" (relative to "/root/@EditorNode@21273/@Panel@14/@VBoxContainer@15/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@26/DockVSplitCenter/@EditorBottomPanel@7933/@VBoxContainer@7918/@WindowWrapper@16986/@HSplitContainer@16957/@TabContainer@16985/@VisualShaderEditor@27050/@HSplitContainer@26618/@GraphEdit@26655").
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Node not found: "169" (relative to "/root/@EditorNode@21273/@Panel@14/@VBoxContainer@15/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@26/DockVSplitCenter/@EditorBottomPanel@7933/@VBoxContainer@7918/@WindowWrapper@16986/@HSplitContainer@16957/@TabContainer@16985/@VisualShaderEditor@27050/@HSplitContainer@26618/@GraphEdit@26655").
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Node not found: "184" (relative to "/root/@EditorNode@21273/@Panel@14/@VBoxContainer@15/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@26/DockVSplitCenter/@EditorBottomPanel@7933/@VBoxContainer@7918/@WindowWrapper@16986/@HSplitContainer@16957/@TabContainer@16985/@VisualShaderEditor@27050/@HSplitContainer@26618/@GraphEdit@26655").
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Node not found: "167" (relative to "/root/@EditorNode@21273/@Panel@14/@VBoxContainer@15/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@26/DockVSplitCenter/@EditorBottomPanel@7933/@VBoxContainer@7918/@WindowWrapper@16986/@HSplitContainer@16957/@TabContainer@16985/@VisualShaderEditor@27050/@HSplitContainer@26618/@GraphEdit@26655").
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Node not found: "168" (relative to "/root/@EditorNode@21273/@Panel@14/@VBoxContainer@15/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@26/DockVSplitCenter/@EditorBottomPanel@7933/@VBoxContainer@7918/@WindowWrapper@16986/@HSplitContainer@16957/@TabContainer@16985/@VisualShaderEditor@27050/@HSplitContainer@26618/@GraphEdit@26655").
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Node not found: "167" (relative to "/root/@EditorNode@21273/@Panel@14/@VBoxContainer@15/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@26/DockVSplitCenter/@EditorBottomPanel@7933/@VBoxContainer@7918/@WindowWrapper@16986/@HSplitContainer@16957/@TabContainer@16985/@VisualShaderEditor@27050/@HSplitContainer@26618/@GraphEdit@26655").
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Node not found: "167" (relative to "/root/@EditorNode@21273/@Panel@14/@VBoxContainer@15/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@26/DockVSplitCenter/@EditorBottomPanel@7933/@VBoxContainer@7918/@WindowWrapper@16986/@HSplitContainer@16957/@TabContainer@16985/@VisualShaderEditor@27050/@HSplitContainer@26618/@GraphEdit@26655").
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Node not found: "168" (relative to "/root/@EditorNode@21273/@Panel@14/@VBoxContainer@15/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@26/DockVSplitCenter/@EditorBottomPanel@7933/@VBoxContainer@7918/@WindowWrapper@16986/@HSplitContainer@16957/@TabContainer@16985/@VisualShaderEditor@27050/@HSplitContainer@26618/@GraphEdit@26655").
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Node not found: "169" (relative to "/root/@EditorNode@21273/@Panel@14/@VBoxContainer@15/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@26/DockVSplitCenter/@EditorBottomPanel@7933/@VBoxContainer@7918/@WindowWrapper@16986/@HSplitContainer@16957/@TabContainer@16985/@VisualShaderEditor@27050/@HSplitContainer@26618/@GraphEdit@26655").
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Node not found: "169" (relative to "/root/@EditorNode@21273/@Panel@14/@VBoxContainer@15/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@26/DockVSplitCenter/@EditorBottomPanel@7933/@VBoxContainer@7918/@WindowWrapper@16986/@HSplitContainer@16957/@TabContainer@16985/@VisualShaderEditor@27050/@HSplitContainer@26618/@GraphEdit@26655").
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Node not found: "184" (relative to "/root/@EditorNode@21273/@Panel@14/@VBoxContainer@15/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@26/DockVSplitCenter/@EditorBottomPanel@7933/@VBoxContainer@7918/@WindowWrapper@16986/@HSplitContainer@16957/@TabContainer@16985/@VisualShaderEditor@27050/@HSplitContainer@26618/@GraphEdit@26655").
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Node not found: "184" (relative to "/root/@EditorNode@21273/@Panel@14/@VBoxContainer@15/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@26/DockVSplitCenter/@EditorBottomPanel@7933/@VBoxContainer@7918/@WindowWrapper@16986/@HSplitContainer@16957/@TabContainer@16985/@VisualShaderEditor@27050/@HSplitContainer@26618/@GraphEdit@26655").
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Node not found: "184" (relative to "/root/@EditorNode@21273/@Panel@14/@VBoxContainer@15/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@26/DockVSplitCenter/@EditorBottomPanel@7933/@VBoxContainer@7918/@WindowWrapper@16986/@HSplitContainer@16957/@TabContainer@16985/@VisualShaderEditor@27050/@HSplitContainer@26618/@GraphEdit@26655").
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Node not found: "184" (relative to "/root/@EditorNode@21273/@Panel@14/@VBoxContainer@15/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@26/DockVSplitCenter/@EditorBottomPanel@7933/@VBoxContainer@7918/@WindowWrapper@16986/@HSplitContainer@16957/@TabContainer@16985/@VisualShaderEditor@27050/@HSplitContainer@26618/@GraphEdit@26655").
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Node not found: "184" (relative to "/root/@EditorNode@21273/@Panel@14/@VBoxContainer@15/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@26/DockVSplitCenter/@EditorBottomPanel@7933/@VBoxContainer@7918/@WindowWrapper@16986/@HSplitContainer@16957/@TabContainer@16985/@VisualShaderEditor@27050/@HSplitContainer@26618/@GraphEdit@26655").
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Node not found: "184" (relative to "/root/@EditorNode@21273/@Panel@14/@VBoxContainer@15/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@26/DockVSplitCenter/@EditorBottomPanel@7933/@VBoxContainer@7918/@WindowWrapper@16986/@HSplitContainer@16957/@TabContainer@16985/@VisualShaderEditor@27050/@HSplitContainer@26618/@GraphEdit@26655").
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Node not found: "184" (relative to "/root/@EditorNode@21273/@Panel@14/@VBoxContainer@15/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@26/DockVSplitCenter/@EditorBottomPanel@7933/@VBoxContainer@7918/@WindowWrapper@16986/@HSplitContainer@16957/@TabContainer@16985/@VisualShaderEditor@27050/@HSplitContainer@26618/@GraphEdit@26655").
  ERROR: Frame does not exist or is not of type GraphFrame.
  ERROR: Frame does not exist or is not of type GraphFrame.