Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

[Feature Request] Import export Shader Graph with HTML visualisation.

Discussion in 'Shader Graph' started by John_Leorid, Sep 12, 2019.

  1. John_Leorid

    John_Leorid

    Joined:
    Nov 5, 2012
    Posts:
    646
    Shader-Graph offers a great visual coding tool for shaders and I love to use it.
    The only think it is missing, compared to text-coding shaders is the ability to share a graph online. Whenever there is a cool shader someone has made, it's online as PNG/JPG and if you want to use it, you have to rebuild it based on that image.
    It would be awesome if there would be an import/export option based on text.
    Exporting would translate the graph to text or binary/hex symbols, it doesn't really matter.
    Importing would translate those text/binary/hex symbols back to a full shader graph with correctly positioned nodes.

    Additionally there could be an HTML format, which can read the text/binary/hex and draws the graph online - with a button to copy the text to the clipboard. Something like "export->embed"

    I think this would really help sharing shaders created with shader graph.
     
    keeponshading likes this.
  2. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    It would be nice if you copy something in the shadergrap and past it into a text field / website you get the json version of the data so if someone is pasting it into there graph it just insets the nodes.
    The HTML export would need to generate preview picture of all the nodes since the browser will not be able to run the shader code.