Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question Performance for a lot of foliage? --- Animator or Shader ?

Discussion in 'Animation' started by KarlKarl2000, May 12, 2021.

  1. KarlKarl2000

    KarlKarl2000

    Joined:
    Jan 25, 2016
    Posts:
    600
    Hi @JamesB @Mecanim-Dev

    I have a question. I have a field of grass that I want to animate. In your opinion\experience, which is more performant?

    Should I use an animator controller that all the grass share? Or create a shader graph, shader, for the grass?

    Thanks!
     
    Last edited: May 12, 2021
  2. marcb152

    marcb152

    Joined:
    Jun 20, 2019
    Posts:
    22
    Hi!
    Animator controllers are made for humanoid/animals kind of meshes, with complex animations, blending between states, and so on.
    This means that they will perform poorly for a grass field, so shaders are definitely the way to go for animating this type of foliage.
    Last tip: please avoid pinging people at the beginning of a thread, they don't necessarily want to be mentionned everywhere.
    Anyway, I hope this helps :)