bool   SWDrawShadow(swshadowstruct* shadowobj,swshadowmapstruct shadowmap)

                Draw the final SW shadow object. Normally you use it with SWShadowBuildFromObj(..). But you can use it like a standard object. So you can draw it to same object at different palces. Therefore it will be rendered in world space.

 

                sahdowobj: Your SW shadow object.

                shadowmap: The shadow map of shadowed object, that you made with RenderShadowToTexture().

 

                Result:

                Success