Search Unity

Question Toon Shader for Entities

Discussion in 'Graphics for ECS' started by HappySlice, Sep 27, 2023.

  1. HappySlice

    HappySlice

    Joined:
    Nov 3, 2014
    Posts:
    22
    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?
     
  2. SlumberPenguin

    SlumberPenguin

    Joined:
    Sep 20, 2020
    Posts:
    25
  3. HappySlice

    HappySlice

    Joined:
    Nov 3, 2014
    Posts:
    22
    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?
     
  4. SlumberPenguin

    SlumberPenguin

    Joined:
    Sep 20, 2020
    Posts:
    25
  5. HappySlice

    HappySlice

    Joined:
    Nov 3, 2014
    Posts:
    22