Yeah that's true - PCF samplers are not available on WebGL, there is no extension for those like GLES2 has the GL_EXT_shadow_samplers extension ( http://www.khronos.org/registry/gles/extensions/EXT/EXT_shadow_samplers.txt). Note though that you can still do a traditional sampler, which works for shadow mapping as well, although it will end up doing fewer samples and possibly not look as good. Do you have a fallback path for Android when GL_EXT_shadow_samplers is not available?
2014-03-13 9:01 GMT+02:00 Esenthel <[email protected]>: > 90% of the screens on that page are from my customers, so I don't have > access to the projects and can't recompile them for web. > Those that are mine rely heavily on shadows, and I've noticed that > browsers (well actually I've just tested Chrome) do not support hardware > shadow mapping (shadow2DProj, shadow2DSampler), so for now I'll just wait > until browsers start supporting this. > I'll probably add some more demos, but once I make a few small games that > don't rely on shadows that much. > > -- > You received this message because you are subscribed to the Google Groups > "emscripten-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
