Filament: Implement ShadowMap for multiple lights

Created on 20 Mar 2019  路  4Comments  路  Source: google/filament

Hi there. Filament currently estimates shadows for a single directional light. Would it be possible to extend this implementation to support shadows on both multiple and different types of lights? I understand that this comes at the performance cost of additional shadowmap passes, so perhaps it should be enabled through configuration.

enhancement

Most helpful comment

The curent thinking would be to add 2-4 cascades for the directional light, and support 4 spot-lights, with no support for point-lights and no cascades.

All 4 comments

We want to add support for spot light shadows, as well as cascaded shadow maps for the directional light, etc. We've been talking recently with @pixelflinger on what would be the best approach (atlas, texture arrays, etc.).

The curent thinking would be to add 2-4 cascades for the directional light, and support 4 spot-lights, with no support for point-lights and no cascades.

Work for shadowed spotlights is ongoing. It should be available soonish.

Spot light shadows are now supported.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yongtang picture yongtang  路  5Comments

cx20 picture cx20  路  5Comments

jiqimaogou picture jiqimaogou  路  6Comments

Y0hy0h picture Y0hy0h  路  5Comments

Realitian picture Realitian  路  5Comments