Toon Shader for Entities

Hello,

I’m interested in using toon shaders in my ECS project. I tried adding the DOT INSTANCING keyword to each pass of the URP hybrid shader for TCP2 (https://assetstore.unity.com/packages/vfx/shaders/toony-colors-pro-2-8105) and didn’t have any luck getting it to work within the subscene.
The shader works well on game objects outside the subscene, so I know it’s specific to Entities Graphics, not URP.
I also tried Unity’s toon shader (before the latest update) and had no luck there either.

In short, has anyone had any luck using or creating a toon shader for entities?

I don’t use toon shader, but that’s my solution: Shader [Universal Render Pipeline/Lit] on [*] does not support skinning?

anyway, you should find a shader graph version of the shader you wanna use, and add a “compute deformation” node, then it works well in the subscene.

Is the compute deformation just for skinned meshes? I’ll probably want that eventually (as I have also purchased the GPU ECS Animation Baker) but currently just want a toon ramp effect.
Is the idea that shadergraph knows to add the dots instancing?

It’s not about mesh, it’s a node of shader graph for dots~


add it to your shader and it can work well in dots
https://docs.unity3d.com/Packages/com.unity.shadergraph@14.0/manual/Compute-Deformation-Node.html
https://docs.unity3d.com/Packages/com.unity.entities.graphics@1.0/manual/mesh_deformations.html

This is a free URP Toon Shader done in shader graph and works like a charm.

1 Like