Skip to content

WIP: shareable shadow maps

Mads Buvik Sandvei requested to merge madsbuvi/openmw:shared_shadow_maps into master

Changes to mwshadowtechnique that allows me to share shadow maps with other views, by generating from an alternate view+projection matrix and then copying statesets to other views. See vrshadow.cpp for an example of use.

I'd like suggestions on better ways to pass around the SharedShadowMapConfig structure than as user data of cameras, which feels like too much of a hack to be the only reasonable way.

The motivation for this changeset is naturally that not computing the shadows twice is a major performance benefit when rendering stereo.

For comparison, without shared shadow maps: BruteForce_Shadows

With shared shadow maps: BruteForce_Shared_Shadows

Edited by Mads Buvik Sandvei

Merge request reports