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

► Shader Graph Baker - Tool for baking a texture from Shader Graph ◄

Discussion in 'Assets and Asset Store' started by Arkhivrag, Oct 4, 2022.

  1. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,972
    Cover (2).png

    Tool for baking Shader Graph nodes output into a common texture file.
    Useful for creating procedural, gradient, noise or custom effect textures, generating normal and other types of maps, optimizing shader by replacing a complex set of static nodes with just one texture.


    Asset Store Page
    Documentation

    2 (1).png
    2 (4).png
     
    Last edited: Dec 1, 2022
    LiterallyJeff likes this.
  2. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,972
  3. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,972
    Update v2022.4 features:

    Exporting image sequence files separately:
    Radial.gif


    Exporting image sequence files as Texture2DArray asset:
    Radial_Array.gif


    Exporting image sequence files as Atlas:
    Radial_Atlas.gif
     
  4. YugoLojelis

    YugoLojelis

    Joined:
    Jan 21, 2022
    Posts:
    1
    Hello there, I am interested in your asset. Is there a way to call the Bake method at runtime from a script ?
     
  5. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,972
    Yes. It is possible.
     
    Last edited: Jan 1, 2023
    YugoLojelis likes this.
  6. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,972
    With new update, now it is possible to create Texture3D files using Shader Graph.

    Reddit-Gif---3D-Clouds-(1000x560).gif
     
  7. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,972
    With the new update (v2023.1) now it is possible to bake textures in runtime.
     
  8. Whatever560

    Whatever560

    Joined:
    Jan 5, 2016
    Posts:
    505
    Looks really nice to have something "à la substance designer" inside unity. Will probably try it once time is available. Would love to integrate this in my workflow.
     
    Last edited: Jan 31, 2023
  9. Guennor

    Guennor

    Joined:
    Feb 7, 2013
    Posts:
    7
    I know this was asked before, but just to make triple sure, I can change the shader's properties during runtime on a built game, then bake those textures and store them so I can use them in the game?
     
  10. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,972
    Any properties that can be adjusted with ShaderGraph editor, also can be modified in run-time too and then shader can be baked into a texture.
    Check the last chapter inside Manual file.
     
  11. le_corbz

    le_corbz

    Joined:
    Jul 23, 2021
    Posts:
    2
    I am having trouble getting this asset to work. I have created a shader with procedural noise and wanted to bake it as a texture. the output image shows a jagged portion of what it should and is not correct. I also tried to replicate a shader that was shown in the manual and it still has the same output image as the first shader!? 2.PNG asdf.png 1.PNG Any help would be greatly appreciated, Thanks!
     
  12. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,972
    Unity version?
    Render pipeline?
    Can you send me your custom shader?
     
    Last edited: Oct 28, 2023
  13. le_corbz

    le_corbz

    Joined:
    Jul 23, 2021
    Posts:
    2
    Unity version = 2022.3.4f1
    Render Pipeline = URP
    Attached is the gradient shader that I recreated from the manual. Is there a setting I'm missing or something? Thanks.
     

    Attached Files:

  14. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,972
    At my side I can't find any problems. Tool works as as expected.

    Try attached file. Copy it to the Amazing Assets\Shader Graph Baker\Scripts folder.
    Lets see if it works for you.
     

    Attached Files: