mgsx-dev/gdx-gltf

Ability to use custom DirectionalShadowLight into CascadeShadowMap

dar-dev opened this issue · 0 comments

We miss the possibility to create a custom DirectionalShadowLight when creating lights for cascading into CascadeShadowMap class.

lights.set(i, new DirectionalShadowLight(w,h));

lights.add(new DirectionalShadowLight(w,h));

This is a quick implementation:

protected DirectionalShadowLight createDirectionalShadowLight(int shadowMapWidth, int shadowMapHeight)
{
 return new DirectionalShadowLight(shadowMapWidth, shadowMapHeight);
}