I realised this is probably possible in the Spring engine using an widget that generates a text box and buttons you could let people cycle though a list of examples and modify them ingame and hit refresh or be able to write their own from scratch etc.
This could then even be bundled into a demo mod package with installer and published around the internet and may potentially be quite popular if no such tool currently exists (and would promote the engine).
Anyhoo I can't write this as I lack the required shader knowledge to begin with but if anyone wants to comment or steal the idea please go right ahead..!
