Shader graph counterparts to default VFX Graph shaders?

Hi,

I’m trying to make a minor adjustment to the shader that’s used by VFX Graph (specifically, my output context uses particle URP Lit Quad with flipbook blending) to incorporate a custom fog solution.

I figured the intended way to approach this is to make a custom shader graph and use this instead. However, I’m having a hard time recreating the default VFX Graph shaders as shader graphs. Are there representative examples available?
Maybe someone else did the work before and recreated some suitable shader graph counter parts?

Lit is just sampling the base texture, right?
And the other textures/values if you use those
What did you try and what is and is not working?

Hi. Thanks for your reply.
If I create a customer shader graph and make it VFX capable, then drag it into my output context, expectedly the default shader disappears - including the flipbook blending handling. So I assume I would have to re-create this flipbook shader in shader graph? I was wondering if those default shaders are available as shader graphs, so I could then make minor adjustments for my fog integration, instead of trying to create a custom one from scratch.

On a side note - I just found out about custom HLSL blocks. Maybe this would be another possible solution for my problem. I’ll experiment with this now.

Don’t think they are available, but there is a flipbook node to get that effect :stuck_out_tongue:

That node has no built-in blending feature though, and it really feels like re-inventing the wheel for this feature when I try to recreate the whole default shader, just for a minor adjustment.

Did you ever get to the bottom of this? I’m trying to do the same exact thing

With 2 samples and a lerp you should be able to blend 2 flipbook nodes

As @DevDunk stated, you should be able to blend two flipbook nodes.
Now, since Unity 6.3, you can create a Shader Graph from the template window:
Create > Shader Graph > From Template

This allows you to create a shader from a template, and you should find dedicated templates for VFX Graph.

While you don’t have the full functionality of the built-in shader, you have a good starting point.

From there you can also use the new subgraph that were added in the shader graph package.
You’ll find subgraph for Flipbook blending, soft particles, etc…

Those Subgraph were created to replicate the features from the built-in VFX Graph shader and should help you to quickly create a shader graph equivalent.

Wish you a beautiful day.