playcanvas / playcanvas/engine
"Cast Shadow" with PCF3x3 fails to render dynamically generated mesh correctly
Open
@mvaligursky is already working on this.
Since Apr 25, 2022.
area: graphics
- Dominant language
- JavaScript
- Stars
- 16.8k
- Forks
- 2k
- Avg merge
- 4h 9m
- Merged PRs (30d)
- 218
Description
Posting bug report as instructed from PlayCanvas forum: https://forum.playcanvas.com/t/light-shadow-bug/25343
Use of lights with "Cast Shadow" checked, and using PCF 3x3 shadow map breaks rendering of dynamically generated meshes in Windows/Android +(Firefox). Works fine on iOS (iPad Air).
Test project URL: https://playcanvas.com/editor/project/916295
Steps to Reproduce
- Check if both lights have "Cast Shadow" checkbox checked and one uses PCF 3x3 and other one has PCF 5x5.
- When 5x5 is used, mesh is visible as expected, when 3x3 is used, texture alpha is respected but color is black.
- Lightsources can be toggled by clicking the "Switch lightsource" option and console logs active lightsource.
Screen grabs:


Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.