How to extract shadows render pass

GBuffer内不含阴影信息,一般来说,影子是从每个投影的灯光做shadowmap,然后拿来跟GBuffer里的位置做比较来渲染阴影的的。