简体   繁体   中英

Fade shader in Unity HDRP?

I have an image I painted with the soft brush in PS - it has an alpha channel. Im using the standard HDRP lit shader and have blend set to alpha/transparent, but I only have an alpha clip option.

The old pipeline has a fade, so the alpha clipping isn't as abrupt. Is this possible in HDRP?

Uncheck 'Alpha Clipping' in the material while retaining Transparent surface type and Alpha blending mode - this should make the image have smooth edges while retaining alpha blending. Alternatively, if you still want alpha clipping, manipulate the threshold slider underneath 'Alpha Clipping' checkbox (visible only when it's checked).

Tested on Unity 2019.1.12f1 with HDRP 5.16.1-preview

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM