I’d be grateful for a quick sanity check to see if what I want is possible. I have the following shader graph, with target Visual Effect (Unlit, Alpha Clipping).
Should it be possible to get a preview in the Main Preview or am I assuming that is possible when it isn’t?
When I add a Universal target, the preview appears and I can choose a mesh. I can also choose a mesh with only the VFX target, but nothing is visible. I disabled Alpha clipping, but no dice.
Update 2: Managed to avoid the error (by renaming the file, shrug). Anyway, with Universal target I am getting a nice shader, and with Visual Effect target I’m getting the small piece above.
Update: It does generate a shader, but the generated shader can only be previewed in the generated VFX graph shader (it is contained within). It would be great to be able to preview it in the shader graph also, but is not as necessary anymore for me personally.
Also, it’s perhaps obvious to others but it wasn’t obvious to me that I cannot use non-exposed shader graph input defaults in the VFX graph. I needed to make them all exposed and pass in the values explicitly.
It is generated, but you can only view it when viewing the generated shader in the VFX graph (see my message above). My actual issue was that one cannot use non-exposed default inputs. I needed to expose them all in the SG and set them in the VFXG. I hope that helps!
P.S: Even if you can’t see the generated graph, you can insert it into the shader slot of a VFXG output block.