Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

[feature request] MeshRenderer option - "Force raster shadows".

Discussion in 'HDRP Ray Tracing' started by Lex4art, Jun 29, 2021.

  1. Lex4art

    Lex4art

    Joined:
    Nov 17, 2012
    Posts:
    445
    Ray traced shadows are very good thing to have but they are not supporting vertex animated shaders - swaying grass/tree leafs and such are moving but their ray traced shadows are not and this looks bad. So, if there is a way to add new option "Force raster shadows" to MeshRenderer "Lighting" properties - it will be a solution for that kind of objects:
    Feature request - Force raster shadows.png

    Hope this is possible (or maybe there is a better solution being developed...) - will help to add a bit of life into ray traced scenes.
     
    Last edited: Jun 29, 2021
  2. chap-unity

    chap-unity

    Unity Technologies

    Joined:
    Nov 4, 2019
    Posts:
    766
    AFAIK, there's no work being done around this. I can ask around to see if it's worth putting the work but I guess it kind of make sense while Ray Tracing doesn't support vertex animation.

    In the meantime, one idea that's far from perfect but could work at small scale is to use a receiver (like a plane) with a transparent shadow matte material.
    The idea is that the shadow will fallback to raster version and "cover" the ray traced shadows.

    upload_2021-6-29_16-43-10.png
     

    Attached Files:

    Lex4art likes this.