<div dir="ltr"><div><div><div><div>Hi,<br><br></div>I wonder if anyone here would be able to share some OSG based sample code demonstrating shadow cube maps for point light sources.<br></div><br></div>While the osgShadow::ShadowMap class will currently detect point lights and use a perspective frustum for rendering the shadow map, I believe this does not currently cast shadows in all directions <br><br></div><div>Rendering into all 6 faces of a cube map seems quite costly, so I wonder if there are more efficient ways to do shadow casting in all directions, say... rendering into two halves of a spherical map for example. Or going completely crazy... a tetrahedral shadow map requiring 4 projections instead of 6 for a cube map,<br><br></div>Christian<br><div><br></div></div>