Search Unity

Help Wanted File extension for Texture 3D

Discussion in 'Shader Graph' started by sebsmax, Jan 13, 2020.

  1. sebsmax

    sebsmax

    Joined:
    Sep 8, 2015
    Posts:
    89
    With Build-in, I was using a texture3D by injecting it into the shader (see how to here)

    Shader Graph have a node to get a 3d Texture, but I can't find the extension expected by the node. (No details in the doc)

    Unity_pAughBnUbV.png

    Any ideas?
     
  2. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    2,899
    Last edited: Jan 15, 2020
  3. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    8,097
    I’m confused by your use of the term “extension” here. That implies you’re looking to import some kind of image, like a .png or .jpg, to use as a 3D texture. For Unity you have to create 3D textures from script at runtime, or in editor and save them as .asset files. This all works exactly the same as the “built-in” (though no built in shaders use 3D textures, so I’m not sure why you referred to it that way). Create a Texture3D in script, assign it to the material’s property. The “reference” name for Shader Graph is the name you want to use. You can change that to anything you want.
     
unityunity