Warning with shadows and PCF

https://www.babylonjs-playground.com/#R1EVD0#18

You get this warning in the console log:

[.WebGL-000001EED03407C0] GL_INVALID_OPERATION: Mismatch between texture format and sampler type (signed/unsigned/float/shadow).

It only happens with PCF, the other types of filtering don’t trigger the warning.

Woot! this one is for Captain @sebavan

I ll fix it ASAP

1 Like

PR is up Fix Warning in PCF by sebavan · Pull Request #7346 · BabylonJS/Babylon.js · GitHub

Thanks!

I will mark it as resolved when I have tested the fix against one of my project that gives those warnings too.

Tested and no more warnings, marked as resolved!

2 Likes

Hmm…I have same warning when i use Cascaded Shadow Generator with PCSS Filtering. What could be the reason for this behavior?

Could you setup a repro in the Playground? It will be hard to help without it.

I’ll try it later, but I’m not sure that i can repro it, I have a complex scene with many different effects maybe some of them can influence on shadows behavior