Search Unity

Transparent Shadows? (Like in Built-in)

Discussion in 'High Definition Render Pipeline' started by DuvE, May 9, 2021.

  1. DuvE

    DuvE

    Joined:
    May 22, 2016
    Posts:
    169
    Hi,

    Is it possible to achieve shadows from semi-transparent objects like in a Built-in pipeline? It could be useful to mimic the clouds shadows (just put one big plane with transparent noise texture above).

    In built-in, it works perfectly as expected, but in HDRP it generates the shadow from the whole mesh plane.
     

    Attached Files:

    Ruchir likes this.
  2. Ruchir

    Ruchir

    Joined:
    May 26, 2015
    Posts:
    934
    Unfortunately, HDRP doesn't support transparent shadows(it does support alpha cut off though), it's only supported when using raytraced shadows. :(

    For cloud shadows, you could use dynamic light cookies for the directional light (which does support the look you are going for and in a much more performant way than what you would have done using that transparent mesh), similar to what unity uses in the cloud component in the latest HDRP 12 :)