We encountered a peculiar issue when working with a dynamically generated mesh and want to check if this is a proper bug and not something due to our mistake.
The sample project is here: https://playcanvas.com/editor/project/916295
Clicking the button “Switch Lightsources” disables one light and enables the other one. The only difference between the two is that one uses a Shadow Map setting of Shadow Map PCF 3x3 and the other one uses Shadow Map PCF 5x5.
When PCF 3x3 is used, (and on Windows 11 + Firefox or Android + Firefox) the mesh is rendered black + alpha, but when PCF 5x5 is used, the mesh is rendered properly.
However, the setup works fine on iPad Air + Safari, always proper rendering.
Has anyone encountered this before?
And, is there any real impact of switching between the two PCF types?
Our obvious work-around was to disable “Cast Shadows”, but would like to be sure there isn’t a deeper issue affecting our code.