Shader documentation / ShaderMaterial impl

first off, the ShaderMaterial doc page looks a bit odd :slight_smile:

What needs to be documented:

  • the meaning/effect of {{MODULES_HEAD}}, {{MODULE_COLOR}} etc.
  • how shader input ports are created

Incidentally, shader input port creation is a bit wonky at he moment: It’s impossible to delete them (right?), and they only show up if you e.g. declare a uniform and also use it in main. I think it would be better to make ports dependent on just the variable declaration - that would enable port deletion as well.

Bumping this, looking for docs on MODULE_COLOR/MODULE_HEAD.