abnormal soft shadow when apply PCSS shadow type #8361
Replies: 6 comments
-
PCSS is still work in progress. |
Beta Was this translation helpful? Give feedback.
-
For your use case you should try VSM shadows + a small blur radius. |
Beta Was this translation helpful? Give feedback.
-
We change to VSM shadow type but the abnormal shadow still occure, after enlarging the fov from 18.5 degree to 28, the abnormal shadow disappeared. Maybe there is a better way to fix this. |
Beta Was this translation helpful? Give feedback.
-
PCSS is vastly more costly than VSM. So from a performance standpoint, VSM is going to be better. Also since you want a soft result, you can use a very low resolution with VSM, try 64 pixels and use "stable" mode. Which fov are you taking about? The camera? Can you send pictures of the different cases. Without a repro case we won't be able to do much. |
Beta Was this translation helpful? Give feedback.
-
@pixelflinger According to your suggestion, we change the shadow type from PCSS to VSM and set the parameters as you mentioned(64 blur size and "stable" mode), part of the shadow disappears once the blur radius is increased as shown blew: Any suggestion? |
Beta Was this translation helpful? Give feedback.
-
With VSM, the blur radius cannot be too large. You can try to enable |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
We are developping avatar project and try to use soft shadow feature, abnormal soft shadow occurred when apply PCSS shaow type, as shown below:
To Reproduce
Steps to reproduce the behavior:
1.PCF shadow as below:
2.Enlarge the intensity of PCF shadow
3.Change to PCSS soft shadow type
Any suggestions to fix this? Many thanks!
Smartphone (please complete the following information):
Beta Was this translation helpful? Give feedback.
All reactions