Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Unite Austin Technical Presentation Shader Question

Discussion in 'Shaders' started by vDavey, Sep 22, 2019.

  1. vDavey

    vDavey

    Joined:
    Nov 7, 2017
    Posts:
    2
    Last edited: Sep 22, 2019
    Danistmein likes this.
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,307
    This appears to be a different project than the one they showed. It doesn’t look like their is any support for shadows at all, and it looks quite intentional, which is unfortunate. Adding support for shadows isn’t a simple task. It might be possible to duplicate the instancing code in that shader to the shadowcaster pass, then change the DrawMeshInstanced call appears to be doing the rendering to include shadows.
     
    Danistmein and vDavey like this.
  3. vDavey

    vDavey

    Joined:
    Nov 7, 2017
    Posts:
    2
    Thank you! I'll check this out.
     
  4. Danistmein

    Danistmein

    Joined:
    Nov 15, 2018
    Posts:
    82
    Hi, have you solved this problem?
    I am researching this problem too. I have followed the steps and seems like it works a little bit.
    Actually, I have found the solution to make minions cast shadows, off and on, for several months.