Search Unity

Resolved Shader [Universal Render Pipeline/Lit] on [*] does not support skinning?

Discussion in 'Graphics for ECS' started by SlumberPenguin, Sep 26, 2023.

  1. SlumberPenguin

    SlumberPenguin

    Joined:
    Sep 20, 2020
    Posts:
    25
    If I put my character in subscene, there will appear many warning about shader.
    How can I solve it?
    I just use default shaders of URP.
    Shader [Universal Render Pipeline/Lit] on [MC_Belt] does not support skinning. This can result in incorrect rendering.
    Please see documentation for Linear Blend Skinning Node and Compute Deformation Node in Shader Graph.

    Unity2022.3.8f1 Entity1.0.16 URP14.0.8

    1.png
    2.png
    3.png
     
    Last edited: Sep 26, 2023
  2. DreamingImLatios

    DreamingImLatios

    Joined:
    Jun 3, 2017
    Posts:
    4,254
  3. SlumberPenguin

    SlumberPenguin

    Joined:
    Sep 20, 2020
    Posts:
    25
    I use GPU ECS Animation Baker, Is it relevant?
    I saw this page, I added ENABLE_DOTS_DEFORMATION_MOTION_VECTORS to Scripting Define Symbols, but it doesn't work
     
  4. DreamingImLatios

    DreamingImLatios

    Joined:
    Jun 3, 2017
    Posts:
    4,254
    Probably. You probably need to use a special shader with that asset and not the one in the instructions.
     
  5. SlumberPenguin

    SlumberPenguin

    Joined:
    Sep 20, 2020
    Posts:
    25
    OK, I found the solution. Try to find the shader graph version of your shader, and add "compute deformation" node in it, then just replace the original shader. And then it works well in the subscene!