Quantcast
Channel: Bugs Latest Topics
Viewing all articles
Browse latest Browse all 760

ESM shadows render on top of shadow caster

$
0
0

I have a large model exported from a software with a lot of nested instances. I added a shadow generator with defaults and added most meshes to its renderList. The console recommends to use Exponential Shadow Maps (ESM) which look also a lot nicer ("VSM are now replaced by ESM. Please use useExponentialShadowMap instead").

With ESM enabled, the scene turns mostly black because shadows are rendered also on top of those meshes that cast that part of the shadow. The issue only disappears when the shadow generator has only a single mesh in the renderList. See here:

http://www.babylonjs-playground.com/#7CPG3X

Is this a bug? Is ESM not yet stable (although the console recommends using it)? Is there a work-around?

---

Another question: My model is mostly static. Are shadow maps regenerated at every frame or only when something (lights, meshes) changes?


Viewing all articles
Browse latest Browse all 760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>