We’re seeing ShadowMap Coverage being skewed to the Left (in the direction that the Directional Light is pointing) in the below screenshot.
We’re not doing anything unusual that we know of here. This error does not happen in the Samples, so not sure why it’s happening in our particular scene. In this case, the ShadowMap is skewed towards the X-Negative Axis, and away from X-Positive.
This shows missing shadows (or partial for the girl) on Right side(X-Positive), but on Left Side (X-negative), the shadows extend very far way.
It skews the coverage in the direction of the Scene’s “Directional Light”. For the above screenshot, the directional light direction is: new Vector3(-1f, -1f, -0.2f) and the shadow map coverage is strong towards X-Negative.
If we change the Direction Light to “new Vector3(1f, -1f, -0.2f)”, then it skews the coverage towards X-Positive.
Since this does not happen in the “Skeletal Animation” sample, it’s definitely some sort of bug with our scene/camera setup. But I’m using the same code for this as the Skeletal Animation.
Does anyone have any clues as to where in our setup we should be looking for something that could cause this type of Shadow-Map skew?